bug-bash
[Top][All Lists]
Advanced

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

Re: Bash Missing Terminal Resize Events


From: Chet Ramey
Subject: Re: Bash Missing Terminal Resize Events
Date: Mon, 20 Nov 2017 10:52:55 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/18/17 9:11 PM, Evan Klitzke wrote:
> Hi,
> 
> Bash will miss terminal resize events in the following scenario:
> 
> * Open a terminal (I tested with xterm and gnome-terminal)
> * Run vim
> * Resize the terminal
> * Background vim using Ctrl-Z
> 
> At the point SIGWINCH will have been delivered to vim, but not to bash.
> Bash is in the read part of the read-eval loop, but it still thinks the
> terminal has the original dimensions. 

Have you tried setting the `checkwinsize' option with `shopt', which
handles exactly this situation?

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