Closed
Description
Is your feature request related to a problem? Please describe.
Both foot and xterm support OSC 22, which allows terminal applications to set the shape of the mouse. This is an xterm extension as far as I can tell, but foot has support. There is an open PR on alacritty as well.
Describe the solution you'd like
Implement OSC 22 in Kitty. Xterm doesn't have great specs for every edge case. The sequence is
OSC 22 ; Pt BEL
Where Pt
is a W3C cursor name in plain ASCII.
- The terminal should only honor mouse shapes when mouse reporting is on
- The mouse shape should be reset along with the rest of the terminal state
- Terminal should override mouse shape for text selection (and restore back to whatever application has set)
Describe alternatives you've considered
Not having mouse shapes. It's a valid alternative but not as fun. Applications can provide nicer hints to user regarding interactivity (resizing of panes / fields, clickable buttons, etc)
Additional context
A demo in foot: https://0x0.st/H4Vl.mp4