bug-bash
[Top][All Lists]
Advanced

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

Re: checkwinsize only works in interactive shells


From: DJ Mills
Subject: Re: checkwinsize only works in interactive shells
Date: Fri, 11 Jan 2013 16:58:17 -0500

On Fri, Jan 11, 2013 at 4:51 PM, Chet Ramey <address@hidden> wrote:

> On 1/11/13 4:46 PM, DJ Mills wrote:
>
> > Will they still be updated on WINCH without checkwinsize, as well? And
> will
> > they be set by default, or continue to be unset in scripts unless set
> manually?
>
> The only thing that's changed is that checkwinsize works in non-interactive
> shells.  SIGWINCH still updates LINES and COLUMNS, and bash won't set LINES
> and COLUMNS itself.
>
> Chet
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    address@hidden
> http://cnswww.cns.cwru.edu/~chet/
>
>
As of right now, WINCH will not update COLUMNS or LINES in a
non-interactive shell.

I've had to use:
trap 'COLUMNS=$(tput cols); LINES=$(tput lines)' WINCH
to get that behavior.


reply via email to

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