From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Brett Haydon <brett(at)haydon(dot)id(dot)au> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: psql history on OSX terminal |
Date: | 2013-05-10 03:17:13 |
Message-ID: | 21430.1368155833@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Brett Haydon <brett(at)haydon(dot)id(dot)au> writes:
> On OSX terminal, when I try and access psql history the historical line is only partially visible sometimes mixed with the last line executed, and the start position of the cursor moves about 15-20 chars in. The line still executes correctly, but it's driving me nuts. Google was not my friend. Any ideas?
What that sounds like is that you're running psql with the wrong value
of the TERM environment variable, so that it's guessing wrong about what
control characters to send for terminal cursor positioning. Try
"echo $TERM" and see what you get. On my Mac laptop, it seems to
default to "xterm" and I get good results from that.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | Brett Haydon | 2013-05-10 03:38:29 | Re: psql history on OSX terminal |
Previous Message | Bruce Momjian | 2013-05-10 02:14:34 | Re: Re: [GENERAL] pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4 |