[Top][All Lists]

[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: Mon, 12 Jun 2017 15:27:15 -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 2:24 PM, Paul Peet wrote:
> I guess this is why I don't get the garbage output with gnome-terminal
> and dash. Dash doesn't use readline apparently.

Dash doesn't support line editing at all out of the box, though you can
build it using libedit.

> So, what can be done to actually fix this?

Not a lot, really. If the display engine assumes that the only characters
on the screen are the ones it writes there, and the terminal emulator
violates that on a screen size change, you're basically left with running
^L (with or without a numeric argument to restrict it to the current line)
a lot.

Now, if you force a complete refresh with ^L and the display is still
wrong, we have a redisplay bug.

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