-
Notifications
You must be signed in to change notification settings - Fork 173
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
support "rich keyboard" protocols by iTerm2/kovidgoyal's kitty/Windows Terminal #1575
Comments
kovidgoyal's kitty keyboard protocol is also discussed for inclusion in Windows Terminal. I appreciate voting for it instead of "CSI u" as it fits far2l better: also GNOME Terminal and Konsole are discussing it: |
Oh, Windows Terminal now has it's own "rich keyboard" protocol, fields from
|
Implemented it, see #1581 |
While testing win32-input-mode introduced in edf9b73 under Windows Terminal, noticed very strange Windows Terminal behavior: microsoft/terminal#15083 |
Wrote experimental parser for iTerm2's advanced input mode. @elfmz if you have Mac or hackintosh at hands, can you please check if it works correctly under iTerm2 or not? Spec: |
At the time far2l tty mode was firstly introduced, no terminal supported sending rich keypress information to console apps. Now it is possible in at least two terminals: iTerm2 on Mac and kovidgoyal's kitty on Mac/BSD/Linux.
Each one uses its own protocol for that (actually there is also third protocol for that, called "CSI u" or "libtickit protocol" and supported by some other terminals, but it does not suit far2l well as it is unable to tell equivalent latin letter for alt/ctrl+non_latin_letters key combinations, also no separate escape sequences for keyup/keydown events and some other limitations).
The first one is iTerm2 "raw keyboard" protocol:
https://gitlab.com/gnachman/iterm2/-/issues/7440#note_129307021
The second one is kovidgoyal's kitty keyboard protocol:
https://sw.kovidgoyal.net/kitty/keyboard-protocol/
If far2l's tty backend will support those portocols it will for sure improve UX of tty version users.
PS: Maybe iTerm2's protocol should not have priority in implementation as it looks like they are planning to adopt kovidgoyal kitty's one also sometime in the future:
https://gitlab.com/gnachman/iterm2/-/issues/10017
The text was updated successfully, but these errors were encountered: