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: Chet Ramey
Subject: Re: checkwinsize only works in interactive shells
Date: Fri, 11 Jan 2013 17:03:11 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 1/11/13 4:58 PM, DJ Mills wrote:

> 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.

And that hasn't changed.  Maybe I should look at changing it.

Chet


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



reply via email to

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