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

Sending mouse events to the terminal #624

Closed
wants to merge 2 commits into from

Conversation

dantepippi
Copy link
Contributor

Sending terminals the ANSI/VT commands for mouse events
Closes #579

@imsnif
Copy link
Member

imsnif commented Aug 22, 2021

Hey, @dantepippi - is this PR ready? I just noticed it's been marked as ready for review a while ago. I don't think I get notifications for that sort of thing. :)

@TheLostLambda
Copy link
Member

Seems good overall to me, but causes some issues when in something like nvim and there is also a scrollback on the terminal. It still tries to scroll the scroll-buffer instead of just passing through the event. Perhaps we need to listen out for applications wanting to capture the mouse? If there is a signal for that?

@tlinford
Copy link
Contributor

tlinford commented Sep 6, 2021

@TheLostLambda There are actually multiple signals related to mouse events: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking.
So for example the sequence we are using to enable mouse mode (via Termion) is: "?1000h\x1b[?1002h\x1b[?1015h\x1b[?1006h"

@imsnif
Copy link
Member

imsnif commented Sep 6, 2021

Iirc this is not ready yet, so I guess that's why it's still not working :)

@tlinford
Copy link
Contributor

tlinford commented May 3, 2022

Closing this as it was superseded by #1191.

@tlinford tlinford closed this May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No mouse support in neovim
4 participants