X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9F6373858001
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=tlinx.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cygwin@tlinx.org
Message-ID: <602B2B20.1030003@tlinx.org>
Date: Mon, 15 Feb 2021 18:17:04 -0800
From: L A Walsh <cygwin@tlinx.org>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Cygwin doesn't handle SIGWINCH properly in Windows Terminal
References: <CABPP8W9h=LzUGf=JP-2x3SjrBPh8NJuoRbXzRU94b-WfBt94yw@mail.gmail.com>
 <20210214174358.f828f285a566846254c3c54a@nifty.ne.jp>
 <60298BB0.1070301@tlinx.org>
 <20210215090543.afa8fac6ebec42faa471a5c6@nifty.ne.jp>
In-Reply-To: <20210215090543.afa8fac6ebec42faa471a5c6@nifty.ne.jp>
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: "Cygwin" <cygwin-bounces@cygwin.com>



On 2021/02/14 16:05, Takashi Yano wrote:
> On Sun, 14 Feb 2021 12:44:32 -0800
> L A Walsh wrote:                                                        
>> showsize () {\
>>   declare s=$(stty size); s="(${s// /x})"  ;\
>>   printf "%s" "$s${s//?/$'\b'}"       ;\
>> }; export -f showsize
>>
>> trap showsize SIGWINCH
>> -----
> 

> 
> What do you mean by "reset LINES/COLUMNS"? I am not sure what
> is the behaviour diffrence in Linux and cygwin you mentioned.
---
	Actually not sure I can reproduce this now.  The only
thing I am noticing is that if bash is attached to /dev/pts3
(as in mintty), it works, but if attached to /dev/cons0 (as in
cmd.exe), nothing works as no signal is propagated from
the window resize to running program.

	AFAIK, though, that's always been one of multiple 
probs in using windows cmd with a bash shell.


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
