Re: fix for readline terminal size problems when window is resized with open pager

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: fix for readline terminal size problems when window is resized with open pager
Дата
Msg-id CAHyXU0yN13g4=GdEr9=TCxKXYpFqtADJkL-MxXjeKM0a5OVB3g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: fix for readline terminal size problems when window is resized with open pager  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Dec 8, 2015 at 2:02 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I wrote:
>> Merlin Moncure <mmoncure@gmail.com> writes:
>>> The following patch deals with a long standing gripe of mine that the
>>> terminal frequently gets garbled so that when typing.
>
>> Hm.  I wonder whether rl_resize_terminal() exists in every iteration
>> of libreadline and libedit.
>
> Quick followup: rl_resize_terminal() exists in GNU readline at least as
> far back as 4.0 (released Feb 1999).  However, it doesn't seem to be there
> at all in libedit; I don't see it in OS X Yosemite's headers, anyway.
> So we'd need a configure test for this.

I thought that maybe raising the signal (SIGWINCH) manually might be a
more portable way of doing things but this appears not to work
reliably with readline.  Poking around the code and reading posts like
this (https://www.sourceware.org/ml/gdb-patches/2009-11/msg00597.html)
suggests maybe readline's signal handling is too smart for its own
good.  Oh well.

merlin



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Weird portability issue in TestLib.pm's slurp_file
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Include ppc64le build type for back branches