-
Notifications
You must be signed in to change notification settings - Fork 721
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
rfc: built-in option to request for "extended-keys" aka "CSI u" #4103
Comments
Is it feasible to add |
Note that I highly doubt the actual escape codes produced by xterm, iterm and kitty actually are the same for all keys (in particular for shifted variants), though they will be similar for most keys. For details see https://sw.kovidgoyal.net/kitty/keyboard-protocol.html and ongoing discussion in kovidgoyal/kitty#3248 If you have concerns as an application developer, I suggest chiming in on that issue asap. Once kitty 0.20 is released I will be much less willing to make changes to the protocol. |
@mawww What do you think? Maybe it's worth to let user define the on/off sequence, instead of hardcoding in the code? Following script works unless new window is spawned by
|
This should make things easier for you: kovidgoyal/kitty@d360d07 |
Kakoune will adapt to whatever the terminal landscape ends up being, sending the two sequences if necessary. It is unfortunate we have those two sequences now, seeing that Kitty now supports the xterm variant we could migrate to it (and ask @gnachman to add support to it in iterm2, although I feel sorry having asked for the kitty variant and now requesting yet another sequence). Ideally a consensus would form on terminal-wg regarding that sequence and we could use it as guidance, but while that group generates lots of valuable discussion it does not often reach anything close to consensus. I guess for now we might wait and see, I am really happy to see some progress on that front, thanks again @kovidgoyal for working on that Kitty side. |
As a reference, related issue in neowim repo: neovim/neovim#14400 |
@mawww iTerm2 supports |
@gnachman Thats great, I had opened an issue to support the kitty style Now that kitty and iterm2 support the xterm escape sequence I can migrate Kakoune to just emit that. |
Upcoming tmux 3.2 has introduced support for extended-keys. Basically it means that
CSI u
sequences are not automatically enabled inside tmux, unless requested by application by sending special escape sequence.To enable extended keys application should send
\033[>4;1m
and to disable\033[>4;0m
respectively.I tried to apply following script with no success.
Issuing
printf '\033[>4;1m'
manually inside tmux and then starting kakoune works.Probably there is need to have a built-in option for this, as I suppose my script didn't work because there is need to have some kind of direct access to the terminal.
The text was updated successfully, but these errors were encountered: