From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from Ishtar.sc.tlinx.org (ishtar.tlinx.org [173.164.175.65]) by sourceware.org (Postfix) with ESMTPS id 9F6373858001 for ; Tue, 16 Feb 2021 02:19:04 +0000 (GMT) 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 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 11G2J1v9048434; Mon, 15 Feb 2021 18:19:03 -0800 Message-ID: <602B2B20.1030003@tlinx.org> Date: Mon, 15 Feb 2021 18:17:04 -0800 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "cygwin@cygwin.com" Subject: Re: Cygwin doesn't handle SIGWINCH properly in Windows Terminal References: <20210214174358.f828f285a566846254c3c54a@nifty.ne.jp> <60298BB0.1070301@tlinx.org> <20210215090543.afa8fac6ebec42faa471a5c6@nifty.ne.jp> In-Reply-To: <20210215090543.afa8fac6ebec42faa471a5c6@nifty.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2021 02:19:06 -0000 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.