On Fri, Jan 11, 2013 at 4:51 PM, Chet Ramey <chet.ra...@case.edu> 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 c...@case.edu > 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.