delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/31/18:02:23

X-Spam-Check-By: sourceware.org
Date: Wed, 31 May 2006 18:02:16 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: window resizing not updating COLUMNS and LINES
Message-ID: <20060531220215.GA7028@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060531204028 DOT GA5406 AT trixie DOT casa DOT cgf DOT cx> <31DDB7BE4BF41D4888D41709C476B65704168A13 AT NIHCESMLBX5 DOT nih DOT gov>
Mime-Version: 1.0
In-Reply-To: <31DDB7BE4BF41D4888D41709C476B65704168A13@NIHCESMLBX5.nih.gov>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Wed, May 31, 2006 at 05:40:04PM -0400, Buchbinder, Barry (NIH/NIAID) [E] wrote:
>Christopher Faylor wrote:
>> On Wed, May 31, 2006 at 04:18:23PM -0400, Christopher Faylor wrote:
>>> On Wed, May 31, 2006 at 03:44:14PM -0400, Kenneth Nellis wrote:
>>>> (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 am the list administrator for cygwin and cygwin-xfree.
>>> 
>>> I want this discussed on cygwin-xfree.
>>> 
>>> Is that now clear?
>>> 
>>> Thanks.
>> 
>> Nevermind.  I apologize for the harshness of the above.
>> 
>> My reason for wanting to discuss this in cygwin-xfree is because I
>> thought the xterm maintainer would have lots of insight into this
>> problem.  
>> 
>> If you want to take your chances in the cygwin list, then feel free.
>
>It's not just X or rxvt.
>
>Starting bash as
>C:\cygwin\bin\bash.exe -i
>
>/c> shopt checkwinsize
>checkwinsize    on
>/c> export COLUMNS=80
>/c> printenv COLUMNS
>80
># resize window to 120 columns
>/c> printenv COLUMNS
>80
>/c> echo $COLUMNS
>80
>/c> stty -a
>speed 38400 baud; rows 27; columns 120; line = 0;
>intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
>eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S;
>
>susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1;
>time = 0;
>-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
>-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
>-ixoff -iuclc -ixany -imaxbel
>opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
>isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl
>-echoke

Yes, the more I think about this, the more that I can see that I was
doubly wrong here.  I shouldn't have redirected or blocked the original
message since clearly the shell has to be the program which sets the
LINES/COLUMNS environment variable.  It can't be done by xterm or rxvt.

So, either bash isn't doing the right thing or SIGWINCH isn't being
sent to bash by the cygwin DLL.

The above hint is my penance for being too quick and too harsh for
anyone who wants to debug the problem further.

cgf

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