[Top][All Lists]

[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 11:17:39 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/20/17 7:05 AM, Bruce Evans wrote:

>> At the point SIGWINCH will have been delivered to vim, but not to bash.
> I saw this sort of problem on an old system (with bash-1.4.7) and wondered
> if anyone has fixed it.

The `checkwinsize' option came in bash-2.0 with the rest of the `shopt'
options. Current versions allow you to build bash with it enabled by

> Job control seemed to be working perfectly to POSIX spec, but POSIX spec
> just doesn't work for SIGWINCH, and it is not clear how it can work even
> for SIGHUP.  IIRC, terminals are specified to only send SIGWINCH to the
> foreground process.  That is vim in this case.  Nothing relays the signal
> to the next foreground process (usually the shell).  

This is correct; that's why bash queries the window size when a process
stops or exits due to a signal.

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