Re: psql color hostname prompt
От | Cal Heldenbrand |
---|---|
Тема | Re: psql color hostname prompt |
Дата | |
Msg-id | CAAcwKheywkdMgGeU=gczDGxxc3b3U2hUik7i2ShkjGF2=rK4=Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: psql color hostname prompt (Francisco Olarte <folarte@peoplecall.com>) |
Ответы |
Re: psql color hostname prompt
(Steve Crawford <scrawford@pinpointresearch.com>)
Re: psql color hostname prompt (Francisco Olarte <folarte@peoplecall.com>) |
Список | pgsql-general |
Thanks for the input everyone. I'll try to comment on each discussion point:
1) garbled output in large queries
I messed around with a few things, and have not been able to recreate any issues. Can you provide a test case for this? Also, any other interesting things about your terminal, like your $TERM setting, locale, etc. (I'm using xterm with UTF-8, and KDE's Konsole app)1) garbled output in large queries
But again, I think the more elegant approach is to alter the %M logic.
On Mon, Apr 25, 2016 at 9:39 AM, Francisco Olarte <folarte@peoplecall.com> wrote:
Hi:
On Mon, Apr 25, 2016 at 4:04 PM, Achilleas Mantzios
<achill@matrix.gatewaynet.com> wrote:
> Hello, have done that, looked really nice, but unfortunately this resulted
> in a lot of garbled output, in case of editing functions, huge queries, up
> arrows, etc...
Did you use %[ %] to delimit non-printing sequences as Cal did? I've
tested his prompt ( substituting 'echo tarari' for his sh script ) and
it works fine ( at least in xfce4-terminal / ubuntu / 6 terminal lines
long input line ). I've seen a lot of color prompts worked by
forgetting them ( even when the doc for them specially speaks of color
changes ).
Frnacisco Olarte.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: