Re: possible bug in psql

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: possible bug in psql
Дата
Msg-id jq2d2r$t3n$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на possible bug in psql  (chester c young <chestercyoung@yahoo.com>)
Ответы Re: possible bug in psql  (Craig Ringer <ringerc@ringerc.id.au>)
Список pgsql-sql
On 2012-05-29, chester c young <chestercyoung@yahoo.com> wrote:
> do not know if right mailing list
>
> in psql in Ubuntu, when beginning with a smaller terminal, eg, 80
> col wide, then moving to a larger terminal, eg, 132 col wide, the
> readline(?) editor in psql still treats like 80 cols, making it
> impossible to edit longer text.    

As far as I know (as this is the behavior in debian stable)
the ubuntu people use libgettext and not libreadline.

You can force it to use libreadline by using LD_PRELOAD.  I reccomend 
that you do I did this by editing /usr/bin/psql which is a perl script

In any case linux doesn't propogate SIG_WINCH to the other processes
that are using the pty so even if you are using readline you have to 
force this by resizing the window again after exiting the pager, and
then press ctrl-l to clear the screen. 

see also: ld.so(8) kill(7) /usr/share/doc/postgresql-common/*
-- 
⚂⚃ 100% natura



В списке pgsql-sql по дате отправления:

Предыдущее
От: Ireneusz Pluta
Дата:
Сообщение: Re: Job control in sql
Следующее
От: Svenne Krap
Дата:
Сообщение: Re: Job control in sql