Skip to content
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

Merged
merged 3 commits into from
Sep 29, 2021

Conversation

linhanyu
Copy link
Contributor

@linhanyu linhanyu commented Jul 30, 2021

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

Copy link
Member

@vince-fugnitto vince-fugnitto left a 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).

@vince-fugnitto vince-fugnitto added the terminal issues related to the terminal label Jul 30, 2021
@linhanyu
Copy link
Contributor Author

oh, I'm not sure what to do?
I have force pushed, change author and sign-off

… 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]>
@vince-fugnitto

This comment has been minimized.

@linhanyu

This comment has been minimized.

Copy link
Member

@msujew msujew left a 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.

@paul-marechal paul-marechal added this to the 1.18.0 milestone Aug 26, 2021
@paul-marechal
Copy link
Member

Won't be able to make it for 1.17.0, but I'll see to review this PR for 1.18.0.

Copy link
Member

@paul-marechal paul-marechal left a 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.

@paul-marechal paul-marechal merged commit dfde6ec into eclipse-theia:master Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
terminal issues related to the terminal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants