bug-bash
[Top][All Lists]
Advanced

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

Re: Buffer corruption when the terminal is resized.


From: Chet Ramey
Subject: Re: Buffer corruption when the terminal is resized.
Date: Sat, 17 Jun 2017 18:54:13 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 6/12/17 9:49 PM, Paul Peet wrote:

> Yes, indeed, rewrapping the contents on resize breaks this assumption.
> 
> Given that in a(n obviously non-representative) poll about 1.5 years
> ago at https://opensource.com/life/15/11/top-open-source-terminal-emulators,
> terminal emulators that now (not at the time of the poll) rewrap on
> resize got around 50-60% of the votes, maybe it's time for
> readline/bash to reconsider their assumptions.

The problem with reconsidering this assumption is that it leaves you with
no recourse but to move to a new line (and who knows, it may be a line
containing newly-wrapped text) and just do a fresh redraw when you get a
SIGWINCH.  That's going to leave even more text on the screen than now, for
gains only in pathological cases.

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