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

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:19:15 -0800
Organization: Salira Optical Networks
Lines: 23
Message-ID: <3C8D1143.9070100@DeFaria.com>
NNTP-Posting-Host: 206.184.204.2
Mime-Version: 1.0
X-Trace: quimby.gnus.org 1015878079 17717 206.184.204.2 (11 Mar 2002 20:21:19 GMT)
X-Complaints-To: usenet AT quimby DOT gnus DOT org
NNTP-Posting-Date: 11 Mar 2002 20:21:19 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...)




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