X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0	tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4BE0903A.3030207@towo.net>
Date: Tue, 04 May 2010 23:23:06 +0200
From: Thomas Wolff <towo@towo.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Resizing a terminal window
References: <e8rljbzahnf.fsf@FLM000025LVE9F.catmktg.com>
In-Reply-To: <e8rljbzahnf.fsf@FLM000025LVE9F.catmktg.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Am 04.05.2010 16:03, schrieb J. David Boyd:
> ...
>
> Locally, I can use the mouse to resize a window, and the $COLUMNS and
> $LINES variables are automatically filled in.
>
> On many remote xterm sessions, they aren't.
>
> Does anyone have any idea where to start figuring out what is wrong, and
> what I can do to correct it?
>    
LINES and COLUMNS are legacy mechanisms which may serve as a workaround 
if the system doesn't otherwise handle screen size changes properly. 
They should not be needed on modern systems where the tty driver 
maintains the information.
(You may note that mintty has not set them initially but they get set on 
resize - by whatever means... - while in a cygwin console they are not 
used at all.)
So if you happen to have these variables set on a system which does not 
maintain them, they don't get changed on resize and confuse your 
environment. In most cases the best remedy is to just unset them - does 
that help?

------
Thomas

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

