On 16.02.2021 03:17, L A Walsh wrote:
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.
maybe this is waht you are looking for:
# This causes bash to check the terminal size after every command
# and adjusts $LINES and $COLUMNS to the correct values.
shopt -s checkwinsize
--
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