Cygwin doesn't handle SIGWINCH properly in Windows Terminal

L A Walsh cygwin@tlinx.org
Tue Feb 16 02:17:04 GMT 2021



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.




More information about the Cygwin mailing list