Fixes #2745 - NetDriver key handling is broken on Windows Terminal v1.18+#2746
Fixes #2745 - NetDriver key handling is broken on Windows Terminal v1.18+#2746tig merged 9 commits intogui-cs:developfrom
NetDriver key handling is broken on Windows Terminal v1.18+#2746Conversation
Yes, I know why I put that. It's was to use on Linux because it don't recognize |
My test results: |
|
As I said, when I implemented that was to get the terminal buffer size (to use with the |
|
Last call before I merge this fix. I'm pretty sure it doesn't break anything else, but I'd feel much better if others had tested it. |


Fixes #2745 (see also this WT issue: microsoft/terminal#15693)
This PR comments out the code in NetDriver that attempted to use ESC sequences to determine if the terminal has been resized. This code is naive and doesn't actually work: If
IsTerminalWithOptionsistruewe send the "query size" ESC sequence every 10ms and WT 1.18+ dutifully responds. Thus all other keyboard input is swamped.All of this code will be significantly reworked in v2 (as part of #2612).
@BDisp - You put this code in for a reason so I'm a little leery about simply disabling it as I've done here. Do you remember what scenario this may break (e.g. is it some oddball linux/docker scenario or some other terminal beyond Windows Terminal?).
Pull Request checklist:
CTRL-K-Dto automatically reformat your files before committing.dotnet testbefore commit///style comments)