-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Synthesize VT mouse events and add mouse support to Terminal #4859
Conversation
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.
I'll hold signing off till we get some of the points outlined in that mail thread cleaned up but here's some of the other feedback I have
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.
A couple of comments, but this looks pretty cool 😎
98a2fbf
to
7184a01
Compare
97916aa
to
863fab4
Compare
7184a01
to
125e502
Compare
Okay, I played with a build of this extensively and only found two issues. One isn't even a bug, it's just ~ ~ weird ~ ~.
2 is a weird case and the encoding is not often used, i bet, so we can ignore it. |
Also, yes, gotta figure out how that "revert" commit got in here. |
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.
These are definitely nits, so fix them and I'll sign off on this too. I know Dustin mentioned some other bugs, but IMO we can just fix them in post. They seem pretty trivial comparatively. Let's file them, and get these all in
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.
LET'S DO THIS.
do not automerge this -- it is not into master. |
6e5c928
to
5c720be
Compare
Hello @DHowett-MSFT! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
issues addressed; carlos worked with Leon on this
Summary of the Pull Request
Make TerminalControl synthesize mouse events and Terminal send them to
the TerminalInput's MouseInput module.
The implementation here takes significant inspiration from how we handle
KeyEvents.
References
Closes #545 - VT Mouse Mode (Terminal)
References #376 - VT Mouse Mode (ConPty)
TerminalControl
_TrySendMouseEvent
attempts to send a mouse event via TermInput.Similar to
_TrySendKeyEvent
deciding to modify the selection
TerminalApi
TerminalDispatch
TerminalInput
position
(Move MouseInput from TermAdapter to TermInput #4848)
Validation Steps Performed
Tests should still pass.