[PATCH] Cygwin: console: Add workaround for broken CSI3J in Win10 1809.

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 13 16:15:00 GMT 2020


On Jan  1 15:52, Takashi Yano wrote:
> - In Win10 1809, the cursor position sometimes goes out of screen
>   by clear command in console. This seems to be caused by escape
>   sequence CSI3J (ESC[3J). This happens only for 1809. This patch
>   is a workaround for the issue.
> ---
>  winsup/cygwin/fhandler_console.cc | 12 +++++++++
>  winsup/cygwin/wincap.cc           | 41 ++++++++++++++++++++++++++++++-
>  winsup/cygwin/wincap.h            |  2 ++
>  3 files changed, 54 insertions(+), 1 deletion(-)
> 
> diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
> index e4e21e65e..30b9165ca 100644
> --- a/winsup/cygwin/fhandler_console.cc
> +++ b/winsup/cygwin/fhandler_console.cc
> @@ -1667,6 +1667,18 @@ bool fhandler_console::write_console (PWCHAR buf, DWORD len, DWORD& done)
>    if (wincap.has_con_24bit_colors () && !con_is_legacy
>        && memmem (buf, len*sizeof (WCHAR), L"\033[?1049", 7*sizeof (WCHAR)))
>      need_fix_tab_position = true;
> +  /* Workaround for broken CSI3J (ESC[3J) support in kterm compatible mode. */
                                                        ^^^^^
                                                        xterm?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20200113/1ea2ccfc/attachment.sig>


More information about the Cygwin-patches mailing list