[go: up one dir, main page]

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

feat(mouse): add extended mouse sequences #104

Merged
merged 2 commits into from
Jan 31, 2023
Merged

feat(mouse): add extended mouse sequences #104

merged 2 commits into from
Jan 31, 2023

Conversation

aymanbagabas
Copy link
Collaborator
@aymanbagabas aymanbagabas commented Nov 10, 2022

Add SGR and SGR-Pixels mouse support. Other modes are discouraged to use. UTF-8 only works for UTF-8 locales and there is no way to distinguish between previous mouse modes (< 1005). URxvt on the other hand only works in URxvt. Although some terminals support this protocol, they all support the newer SGR protocol.

SGR & SGR-Pixels modes must be enabled with basic terminal modes like cell motion (1002) and all motion (1003).

Reference: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Extended-coordinates
Reference: http://midnight-commander.org/ticket/2662
Reference: xtermjs/xterm.js#1962
Reference: https://gitlab.gnome.org/GNOME/vte/-/issues/155
Reference: https://bugs.gentoo.org/761787

1006: SGR mouse mode
1016: SGR Pixel mouse mode
@aymanbagabas aymanbagabas merged commit d578fd1 into master Jan 31, 2023
@aymanbagabas aymanbagabas deleted the ext-mouse branch January 31, 2023 17:02
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.

1 participant