This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: LINES and COLUMNS not getting updated
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: cygwin at cygwin dot com, cygwin-xfree at cygwin dot com
- Date: Wed, 31 May 2006 18:41:07 +0200
- Subject: Re: LINES and COLUMNS not getting updated
- References: <002701c684bb$9a790110$be32000a@idirect.net> <20060531154754.GE23466@trixie.casa.cgf.cx>
- Reply-to: cygwin-xfree at cygwin dot com
Christopher Faylor, le Wed 31 May 2006 11:47:54 -0400, a écrit :
> On Wed, May 31, 2006 at 10:07:48AM -0400, Kenneth Nellis wrote:
> >In my Cygwin X-Windows xterm environment, I'm not seeing the LINES and COLUMNS environment variables getting updated correctly after my window is resized. Furthermore, "echo $COLUMNS" and "printenv COLUMNS" don't agree. (I didn't see relevant articles in the archives.)
> >
> >It seems to start off working as expected, but soon fails. What seems to work reliably is the following sequence in a new login shell:
> >1) export COLUMNS=80
> >2) printenv COLUMNS; # correctly shows 80
> >3) # resize xterm window width
> >4) printenv COLUMNS; # correctly shows new width
>
> Please go back and read http://cygwin.com/lists.html . This question is not
> appropriate for the general cygwin list.
>
> This message belongs on the cygwin-xfree list - a list that the xterm maintainer
> reads.
Mmm, it doesn't seem to me like only an xterm issue. Maybe xterm has
troubles sending SIGWINCH, but apparently the shell itself has troubles
updating the COLUMNS variable.
Samuel
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/