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

Add support for OSC 22 escape sequence #7244

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kchibisov
Copy link
Member

Add support for OSC 22 escape sequence to allow changing mouse cursor shapes. While the escape sequence could help some users with the mouse UX in TUI applications using mouse mode, it could obscure common mouse mode indication which is the Text cursor. Thus OSC 22 is disabled by default and could be enabled with terminal.osc22 configuration option.

Fixes #7119.

--

I'm not sure from where to re-export the CursorIcon inside the alacritty_terminal.

Add support for OSC 22 escape sequence to allow changing mouse cursor
shapes. While the escape sequence could help some users with the mouse
UX in TUI applications using mouse mode, it could obscure common mouse
mode indication which is the `Text` cursor. Thus OSC 22 is disabled by
default and could be enabled with `terminal.osc22` configuration option.

Fixes alacritty#7119.
@kchibisov kchibisov marked this pull request as draft October 9, 2023 00:43
@rockorager
Copy link

I created an issue on kitty for support and Kovid ended up writing a pretty nice spec for this. It expands on the xterm implementation by adding a query for supported names, as well as a stack based approach if desired. Also fleshes out how it should work with other terminal features

https://github.com/kovidgoyal/kitty/blob/master/docs/pointer-shapes.rst

@chrisduerr
Copy link
Member

@perfbot (just testing things)

@perfbot
Copy link

perfbot commented May 29, 2024

results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add support for OSC 22
4 participants