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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to