X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45,TW_RX,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4BE0903A.3030207@towo.net>
References: <e8rljbzahnf.fsf@FLM000025LVE9F.catmktg.com>	 <4BE0903A.3030207@towo.net>
Date: Wed, 5 May 2010 05:48:53 +0100
Message-ID: <p2v416096c61005042148uf97918eag65de1a0031818359@mail.gmail.com>
Subject: Re: Resizing a terminal window
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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

Thomas Wolff wrote:
> 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.

Yep.

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

Xterm and rxvt don't set them either. Bash sets them on receiving a
SIGWINCH, but not at startup. Go figure.

Andy

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

