delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/11/15:22:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Newsgroups: gmane.os.cygwin
Subject: resize?
Date: Mon, 11 Mar 2002 12:21:29 -0800
Organization: Salira Optical Networks
Lines: 29
Message-ID: <3C8D11C9.2010903@DeFaria.com>
NNTP-Posting-Host: 206.184.204.2
Mime-Version: 1.0
X-Trace: quimby.gnus.org 1015878201 17717 206.184.204.2 (11 Mar 2002 20:23:21 GMT)
X-Complaints-To: usenet AT quimby DOT gnus DOT org
NNTP-Posting-Date: 11 Mar 2002 20:23:21 GMT
Cc: Gurpreet Chhabra <gchhabra AT SALIRA DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us

There doesn't appear to be an equivalent to resize(1). Now normally 
programs like rxvt catch sigwinch and set LINES and COLUMNS accordingly 
but there are a few places where this breaks down.

Open an rxvt terminal at 25x80. echo $LINES. It dutifully reports 25. 
Now resize the window to ~30x80. echo $LINES. It will report the 
appropriate number of lines. Now rlogin to your own machine. echo 
$LINES. It reports 25! Resize your window a little smaller than 25 
lines. echo $LINES. Still 25!

Exit your rlogin. echo $LINES. It should report ~30 (whatever you had 
resized it to before you rlogin'ed). Resize the window again to around 
25 lines. echo $LINES and it should resize to correct number of lines.

Now try telnet instead. Telnet into your own machine. You will note that 
telnet will adjust the size of LINES and COLUMNS properly. For example, 
stretch your window so that you have around 50 lines. Now exit your 
telnet returning to your original connection. echo $LINES. It's back at 
whatever size you had before you telnet'ed.

Therefore I think a resize command would be helpful to have (or if these 
problems noted above could be fixed...)

Oh, one other thing, bash in a Windows window performs no better. 
Initially LINES is set correctly. Now the only way to change the size in 
a Windows window is to select Properties: Layout and change the Window 
size (Width ro Height). Upon exiting that dialog box though Cygwin fails 
to adjust either the LINES or the COLUMNS environment variables.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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