cygwin used to suppress DECRST 1049
Thomas Wolff
towo@towo.net
Tue Oct 27 10:44:00 GMT 2026
Hi,
see https://github.com/mintty/mintty/issues/1387#issuecomment-6140581954
In cygwin 3.6, apparently, while a native Windows application is
running, the control sequence `CSI ? 1049 l` is filtered out, with some
functional consequences as described in that issue. Interesting, this
does not apply to the corresponding DECSET sequence `CSI ? 1049 h` or to
similar sequences with private modes 1047 or 47.
This issue does not occur in current 3.7, so it appears to be fixed but
I don't see any corresponding note in the git log, so I'd still raise
this issue in order to make sure the fix is permanent. I see some
special handling of 1049 and also of 9001 in fhandler/console.cc but it
does not seem to have changed recently.
Also, in logs (mintty -l log) of the test case
tput smcup
echo doing something
tput rmcup > rmcup
cmd /C type rmcup
I see the Windows conhost termination control DECRST 9001 but not the
initial DECSET 9001. If it were present, it could possibly be used for
some terminal adjustment for native Windows applications or even as a
workaround for the above issue.
Kind regards
Thomas
More information about the Cygwin-developers
mailing list