X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: window resizing not updating COLUMNS and LINES
Date:  Wed, 31 May 2006 17:19:15 -0500
Lines: 52
Message-ID: <e5l4p3$uh8$1@sea.gmane.org>
References:  <004501c684ea$9aeb3f80$be32000a@idirect.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.2 (X11/20060420)
In-Reply-To: <004501c684ea$9aeb3f80$be32000a@idirect.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Kenneth Nellis wrote:
> mwoehlke wrote:
>> Kenneth Nellis wrote:
>>> I'm not seeing the LINES and COLUMNS environment variables getting updated
>>> correctly after resizing my terminal window. This occurs whether I'm using
>>> rxvt or xterm. Furthermore, "echo $COLUMNS" and "printenv COLUMNS" don't
>>> agree. (I didn't see relevant articles in the archives.)
>>> 
>>> This occurs regardless of how "shopt -s checkwinsize" is set.
>>
>> FWIW, on *my* Cygwin, LINES and COLUMNS aren't even set... go figure.
>> :-)
>
> Same here...I do my own export to get things started. --Ken

Wait, wait, step back... this in itself sounds like a problem. Can 
anyone on the list verify that Cygwin's bash is setting these *at all*? 
(Of course, Ken's OP seems to imply he has it at least half working, but 
something smells fishy here...)

Bash is *supposed* to set these behind-the-scenes without your doing 
anything. This seems to be how it works on Linux...

Testing with a Windows console window:
$ echo $LINES

$ echo $COLUMNS

$ export LINES COLUMNS
$ echo $LINES

$ echo $COLUMNS

$ bash
$ echo $LINES

$ echo $COLUMNS

$ echo $C<tab*2>
$CC       $COMMONPROGRAMFILES  $COMPUTERNAME  $COMP_WORDBREAKS
$COMSPEC  $CVS_RSH             $CYGWIN
$ echo $C $C <-- yeah, that's broken too :-)

...and I see the same thing if I ssh in from Konsole (from a Linux box).

I understand why CGF wants this on cygwin-xfree, but I don't think it 
has anything to do with xfree (I will grant they may be more likely to 
have heard of it).

-- 
Matthew
Doom doom dooM doo-DooM dOOm DOom doOM... DOOM! -- Gir


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

