-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #2745 - NetDriver
key handling is broken on Windows Terminal v1.18+
#2746
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tig please see my review, thanks.
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
IsTerminalWithOptions
istrue
we 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-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)