Re: psql history on OSX terminal - Mailing list pgsql-general

From Brett Haydon
Subject Re: psql history on OSX terminal
Date
Msg-id 0E5F0808-EF38-4E1D-A2A3-8B6D2214E938@haydon.id.au
Whole thread Raw
In response to Re: psql history on OSX terminal  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Turns out it was an errant line in a my psqlrc file that customised the prompt.. doh.

Thanks anyway.

On 10/05/2013, at 1:17 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Brett Haydon <brett@haydon.id.au> writes:
>> On OSX terminal, when I try and access psql history the historical line is only partially visible sometimes mixed
withthe 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



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql history on OSX terminal
Next
From: Arun P.L
Date:
Subject: Re: [GENERAL] Upgrading postgresql from version 7.4.3‏