-
Notifications
You must be signed in to change notification settings - Fork 2.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
terminal: add mouse support of GUI terminal application , such as vim, mc #9805
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.
@linhanyu thank you for your first contribution 👍
Please be sure to sign the eclipse contributor agreement (eca) with the same email as your authorship so we can accept the changes (it is the reason for the failed CI check).
oh, I'm not sure what to do? |
… mouse mode and mc Application such as vim use binary message to indicate mouse event but not utf-8 data. In xterm.js, it be emitted by onBinary. Simplely connect it to send Data and resolved. Test environment: MacOS Signed-off-by: 翰宇 林<[email protected]>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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 can confirm that the issue (vim not being able to receive mouse events) exists on master
and is addressed by your changes nicely. Code LGTM as well.
Signed-off-by: 翰宇 林<[email protected]>
Won't be able to make it for 1.17.0, but I'll see to review this PR for 1.18.0. |
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.
Thanks for the explanation, it looks good for now.
What it does
vim use binary message to indicate mouse event but not utf-8 data. In xterm.js, it be emitted by onBinary. Simplely connect it to send Data and resolved. Test environment: MacOS
How to test
Open terminal in macos, open vim and type :set mouse=a.
Then Type some word and use mouse to click, normally, cursor would move for.
Review checklist
Reminder for reviewers