Skip to content

feat: set text mouse shape for text-mode panes using OSC 22 mouse shape protocol (#4173) #4174

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vlad20012
Copy link

@vlad20012 vlad20012 commented Apr 30, 2025

Fixes #4173

A picture is worth a thousand words:

Peek.2025-04-30.22-03.mp4

Support in terminals

It works at least in Kitty and xterm. I've also checked iTerm2, but it does not work there despite there is OSC 22 supporting code. I can even see "invalidateCursorRectsForView" in debug logs, which means that the OSC 22 sequence was successfully parsed, but the mouse pointer shape does not change. Probably a bug in iTerm2. In Alacritty there is a draft PR adding OSC 22 support, and I'm going to continue it.

@imsnif
Copy link
Member

imsnif commented May 1, 2025

This definitely looks cool and I can imagine lots of applicative/plugin uses for this in Zellij. That being said, I'm usually cautious implementing new protocols/escape-sequences in order not to take ownership of code and functionality that might not (ever) be adopted by the wider ecosystem.

My measure is usually "did Alacritty implement and release it already?" If they will, I'd be happy to consider this. It seems though that the maintainers are a bit skeptical.

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.

Set text mouse shape for text-mode panes using OSC 22 mouse shape protocol
2 participants