-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Fix the xterm and SGR mouse encodings for CTRL, ALT, SHIFT #8379
Conversation
This commit also fixes an observed issue in Windows Terminal where we were passing in a console-style modifiers enum when MouseInput is expecting MK_ constants. I decided to unify MouseInput around the console-style modifier constants because they have support for META (which MK_ does not) and can differentiate between left/right alt/ctrl. Our tests are fundamentally flawed here: they use a copy of the modifier key generating logic _themselves_, so we got a bit of "error carried forward." I did not fix the tests to use known-good control sequences, I simply replaced the character generator with another copy of the modifier code. I did, however, extend them to test ctrl|meta and left/right modifiers. Fixes #8291
@msftbot make sure @zadjii-msft signs off |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
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.
Wow I really don't know what happened here. Maybe a bad copy-pasta that proceeded to replicate and multiply through all of this?
Anyway, thanks for fixing
N * Change backslashes in include statements to forward slashes (CC-8205) Dustin L. Howett * Refactor DEC/ANSI modes to avoid duplication when we add SM/RM (GH-8469) * Fix the xterm and SGR mouse encodings for CTRL, ALT, SHIFT (GH-8379) James Holderness * Fix rendering of DBCS characters when partially off screen (CC-8438) * Correct horizontal coordinates in viewport overflow test (CC-8456) * Correct paths in the the runut and runft test scripts (CC-8488) * Retain horizontal viewport offset when moving to bottom (CC-8434) * Fix out-of-bounds exceptions in Set...{Buffer,Screen}Size (CC-8309) PankajBhojwani (1) * Implement ConEmu's OSC 9;4 to set the taskbar progress indicator (CC-8055) Chester Liu (1) * Improve OSC 8 Hyperlink parsing logic (CC-7962) Related work items: #31090459, #31090805, #31090808, #31090810
We had the xterm and SGR codings for meta/ctrl backwards. Oops. This commit also fixes an observed issue in Windows Terminal where we were passing in a console-style modifiers enum when MouseInput is expecting MK_ constants. I decided to unify MouseInput around the console-style modifier constants because they have support for META (which MK_ does not) and can differentiate between left/right alt/ctrl. Our tests are fundamentally flawed here: they use a copy of the modifier key generating logic _themselves_, so we got a bit of "error carried forward." I did not fix the tests to use known-good control sequences, I simply replaced the character generator with another copy of the modifier code. I did, however, extend them to test ctrl|meta and left/right modifiers. Fixes #8291 (cherry picked from commit b1e1c7c)
🎉 Handy links: |
🎉 Handy links: |
We had the xterm and SGR codings for meta/ctrl backwards. Oops.
This commit also fixes an observed issue in Windows Terminal where we
were passing in a console-style modifiers enum when MouseInput is
expecting MK_ constants.
I decided to unify MouseInput around the console-style modifier
constants because they have support for META (which MK_ does not) and
can differentiate between left/right alt/ctrl.
Our tests are fundamentally flawed here: they use a copy of the
modifier key generating logic themselves, so we got a bit of "error
carried forward."
I did not fix the tests to use known-good control sequences, I simply
replaced the character generator with another copy of the modifier code.
I did, however, extend them to test ctrl|meta and left/right modifiers.
Fixes #8291