bug-readline
[Top][All Lists]
Advanced

[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 11:47:40 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 7/15/16 11:39 AM, Carlos Pita wrote:
>> OK, let me try to clarify.  When I say "applications" I mean things like R,
>> python, and gdb that use Readline for editing.  I thought that the problem
>> was a reluctance by the maintainers of these applications to change their
>> code to deal with readline changes, or mismatches in updates so that
>> readline gets changed before the calling applications change to match it.
> 
> I do think that is the problem, indeed. But I also thought that your
> proposal was to hook the width update at some place you know rl will
> always return quickly, thus releasing the user from the need to
> explicitly request this refresh. If that's not the case, sorry for the
> confusion. Also, if that's not the case, could something similar be
> achieved without very complex changes? In any other case, I return to
> my initial proposal.

rl_callback_read_char() is the application entry point for readline in
callback mode; that is what gets called when the application returns
control to readline.  If readline updates its idea of the screen size
there, the updated display size will be reflected in the next redisplay,
which should satisfy users.

The issue is that the variable that enables this behavior will be off
(disabled) by default, and will require applications to change to turn
it on if they want this behavior (apps that have SIGWINCH handlers will
not want it).

Chet
-- 
``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]