www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT 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 AT tlinx DOT org |
Message-ID: | <602B2B20.1030003@tlinx.org> |
Date: | Mon, 15 Feb 2021 18:17:04 -0800 |
From: | L A Walsh <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
MIME-Version: | 1.0 |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Re: Cygwin doesn't handle SIGWINCH properly in Windows Terminal |
References: | <CABPP8W9h=LzUGf=JP-2x3SjrBPh8NJuoRbXzRU94b-WfBt94yw AT mail DOT gmail DOT com> |
<20210214174358 DOT f828f285a566846254c3c54a AT nifty DOT ne DOT jp> | |
<60298BB0 DOT 1070301 AT tlinx DOT org> | |
<20210215090543 DOT afa8fac6ebec42faa471a5c6 AT nifty DOT ne DOT 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 AT cygwin DOT 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 AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |