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: Mon, 12 Jun 2017 16:24:55 -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 4:08 PM, Paul Peet wrote:
> Is there a flag in macOS's Terminal? It's because I am also
> experiencing this bug on macOS's Terminal :) (with bash).

I doubt it. My testing wasn't very scientific. I just opened up a new
Terminal, ran bash-4.4, typed a bunch of characters, and constantly resized
the terminal while watching the display.  xterm didn't do too badly at
this, either.

The thing that Terminal does that other terminal emulators (e.g., xterm)
don't seem to do is rewrap all the text on the screen as the screen gets
resized.  For instance, if I make an xterm very narrow, so that the text on
previous lines gets `squeezed' and not displayed, that text isn't restored
when I widen it again. xterm also leaves text on the screen below the
current line if the screen is narrowed so the current line wraps and
consumes all of the vertical area, then widened again. This argues for the
conjecture that other terminal emulators expect the foreground process to
manage the entire display, not just the current line.

There's probably some work that can be done with streams of SIGWINCH,
though.

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



reply via email to

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