Lists: | pgsql-general |
---|
From: | Brett Haydon <brett(at)haydon(dot)id(dot)au> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | psql history on OSX terminal |
Date: | 2013-05-10 00:37:37 |
Message-ID: | EBC6D6AB-F4E7-4CDA-9AFB-C61644F42783@haydon.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
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?
Brett
--
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: | Andrew Satori <dru(at)druware(dot)com> |
---|---|
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 00:48:22 |
Message-ID: | 710026BA-DA0A-4750-ABEB-7CBA512DD606@druware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Several, but most depend upon how you installed. In several of the installation methods (binary) the default terminal management routine has some issues (version linked to), but there are several other possible interactions. Which way did you install? which shell are you using in terminal? which version of OS X? All of these factors will help isolate the root of the problem.
Dru
On May 9, 2013, at 8:37 PM, Brett Haydon <brett(at)haydon(dot)id(dot)au> wrote:
> 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?
>
>
> Brett
>
> --
> 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
--
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: | Brett Haydon <brett(at)haydon(dot)id(dot)au> |
---|---|
To: | Andrew Satori <dru(at)druware(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: psql history on OSX terminal |
Date: | 2013-05-10 01:01:10 |
Message-ID: | 936300C5-15CF-4AE2-BF2B-0BFFA9D6EA03@haydon.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Using the Heroku PostresApp (9.2.2)
/Applications/Postgres.app/Contents/MacOS/bin/psql
OSX 10.8 default bash shell
This is kinda what I end up with (one line after the other and the cursor in the middle) though using the down arrow key can add extra lines in completely messing up the line altogether
brett=# select 1+1; select 1+2;
On 10/05/2013, at 10:48 AM, Andrew Satori <dru(at)druware(dot)com> wrote:
> Several, but most depend upon how you installed. In several of the installation methods (binary) the default terminal management routine has some issues (version linked to), but there are several other possible interactions. Which way did you install? which shell are you using in terminal? which version of OS X? All of these factors will help isolate the root of the problem.
>
> Dru
>
> On May 9, 2013, at 8:37 PM, Brett Haydon <brett(at)haydon(dot)id(dot)au> wrote:
>
>> 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?
>>
>>
>> Brett
>>
>> --
>> 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
>
>
--
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: | Andrew Satori <dru(at)druware(dot)com> |
---|---|
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 01:29:40 |
Message-ID: | 31886AD0-87B8-4004-B2EB-1E989F1A7B60@druware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
While I am not all *that* familiar with the Heroku version, it looks a bit like they are are linking against libreadline instead of libedit in order to maximize platform compatability with older revisions of OS X (10.6.x). Short of rebuilding against libedit on 10.8 I don't know that you have an easy fix.
On May 9, 2013, at 9:01 PM, Brett Haydon <brett(at)haydon(dot)id(dot)au> wrote:
> Using the Heroku PostresApp (9.2.2)
> /Applications/Postgres.app/Contents/MacOS/bin/psql
> OSX 10.8 default bash shell
>
> This is kinda what I end up with (one line after the other and the cursor in the middle) though using the down arrow key can add extra lines in completely messing up the line altogether
>
> brett=# select 1+1; select 1+2;
>
> On 10/05/2013, at 10:48 AM, Andrew Satori <dru(at)druware(dot)com> wrote:
>
>> Several, but most depend upon how you installed. In several of the installation methods (binary) the default terminal management routine has some issues (version linked to), but there are several other possible interactions. Which way did you install? which shell are you using in terminal? which version of OS X? All of these factors will help isolate the root of the problem.
>>
>> Dru
>>
>> On May 9, 2013, at 8:37 PM, Brett Haydon <brett(at)haydon(dot)id(dot)au> wrote:
>>
>>> 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?
>>>
>>>
>>> Brett
>>>
>>> --
>>> 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
>>
>>
>
>
>
> --
> 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
--
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: | 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 |
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: | Brett Haydon <brett(at)haydon(dot)id(dot)au> |
---|---|
To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: psql history on OSX terminal |
Date: | 2013-05-10 03:38:29 |
Message-ID: | 0E5F0808-EF38-4E1D-A2A3-8B6D2214E938@haydon.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | 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(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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