IWAMOTO Kouichi wrote:

> Windows Terminal (or windows console) seems to return a broken response to 
> two running CPR (cursor position report) requests.
> 
> ## executed command
> ```
> $ echo -ne "\e[2J\e[2;2H\e[6n\e[3;3H"; echo -ne "\e[6n"; hd
> ```
> 
> ## expected result
> ```
>   ^[[2;2R^[[3;3R
> 00000000  1b 5b 32 3b 32 52 1b 5b  33 3b 33 52 0a           |.[2;2R.[3;3R.|
> 0000000d
> ```
> 
> ## actual result
> ```
>   ^[^[[3;3R[2;2R
> 00000000  1b 1b 5b 33 3b 33 52 5b  32 3b 32 52 0a           |..[3;3R[2;2R.|
> 0000000d
> ```
> 
> ## termresponse.log when reproduced
> ```
>   0.000001: NV setting crv_status to STATUS_GET
>   0.094243: NV Sending request for ambiwidth check
>   0.094668: NV Sending xterm compatibility test sequence.
>   0.094985: NV Sending CRV request
>   0.095057: NV Sending FG request
>   0.095076: NV Sending BG request
>   0.095179: NV normal character
>   0.102558:    normal character
>   0.102831:    Received compatibility test result: ESC[3;3R[2;2R
>   0.102851:    normal character
>   0.102871:    normal character
>   0.102885:    normal character
>   0.102909:    normal character
>   0.102934:    normal character
>   0.102953:    normal character
>   1.784192:    normal character
>   2.025001:    normal character
>   2.183770:    normal character
> ```

Thanks for the reproduction example.  Clearly this is a problem of the
terminal.  Possibly a multi-threading problem.  I can't even think of a
workaround (even if I wanted to make one).

Please report this to Microsoft.

-- 
If all you have is a hammer, everything looks like a nail.
When your hammer is C++, everything begins to look like a thumb.
                        -- Steve Hoflich, comp.lang.c++

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202007011858.061IwAMT1258497%40masaka.moolenaar.net.

Raspunde prin e-mail lui