delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/31/15:46:44

X-Spam-Check-By: sourceware.org
Date: Wed, 31 May 2006 15:44:14 -0400
From: "Kenneth Nellis" <knellis AT syntek-usa DOT com>
Subject: window resizing not updating COLUMNS and LINES
To: <cygwin AT cygwin DOT com>
Message-id: <004501c684ea$9aeb3f80$be32000a@idirect.net>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k4VJkgZ5011220

(My reply to Christopher Faylor's reply to my original post ["LINES and
COLUMNS not getting updated"] was blocked, I suspect because this thread has
been marked inappropriate for this list. However, as this turns out not to
be an X-Windows/xterm issue after all and because I cannot continue on the
original thread, I start anew, if that's not a problem [and I sure hope it's
not]...)

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.

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 window width
4) printenv COLUMNS; # correctly shows new width

Two interesting repeatable anomalies:
1) If I omit step 2, the last step reports 80, regardless of the window
   width; and
2) "echo $COLUMNS" always reports 80, regardless of what printenv reports.

Also, printenv seems frequently to get stuck at the value 94, regardless of
the actual width. This and many other anomalies haven't been repeatable.
I observe LINES behaving similarly to COLUMNS.

FWIW, I’m using:
Windows XP Professional Ver 5.1 Build 2600 Service Pack 2
Cygwin DLL version 1.5.19
rxvt 2.7.10 or xterm 6.8.2.0(202-1)
bash 3.1-17(6)

--Ken Nellis


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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019