[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] Refresh readline notion of terminal size

From: Chet Ramey
Subject: Re: [Bug-readline] Refresh readline notion of terminal size
Date: Fri, 15 Jul 2016 10:56:07 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 7/14/16 3:00 PM, Carlos Pita wrote:
> Hi Chet,
> regarding the problem with signal handling and apps not informing rl
> about terminal resize events, is it possible somehow to bind a key to
> ask rl "Please update yourself", just as a workaround? I managed to do
> something like that for python using the ffi, but there are to
> limitations:

Hmmm...how about an application-settable readline variable that tells
readline to check the terminal size when it enters rl_callback_read_char()?
Off by default, of course.  Or does that not satisfy your requirements?
Do you want this to be something a user could invoke or set to overcome
delays in application updates?

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]