sedwards2009 / extraterm

The swiss army chainsaw of terminal emulators
https://extraterm.org
MIT License
2.53k stars 116 forks source link

Support extended terminal keyboard input codes #88

Open sedwards2009 opened 6 years ago

sedwards2009 commented 6 years ago

Extra keyboard input codes are described here: http://www.leonerd.org.uk/hacks/fixterms/

vlisivka commented 3 years ago

In addition to that, kitty keyboard protocol will be nice to have: https://sw.kovidgoyal.net/kitty/keyboard-protocol.html

sedwards2009 commented 3 years ago

@vlisivka Do you have an idea of how many libraries or applications actually support kitty's keyboard protocol?

vlisivka commented 3 years ago

@sedwards2009 About 1, my guess. It's quite new, but long awaited feature.

vlisivka commented 3 years ago

To clarify, kitty keyboard protocol is based on fixterms protocol proposed above:

The new protocol has been implemented in master and will be in the next kitty release. The spec for the protocol is: https://sw.kovidgoyal.net/kitty/keyboard-protocol.html The new escape code is based on the proposal in http://www.leonerd.org.uk/hacks/fixterms/ however, it is more general and fixes various bugs in that proposal.

vlisivka commented 3 years ago

Xterm's modifyOtherKeys is supported by vim, Emacs, and iTerm2, mintty, at least.

https://vimhelp.org/map.txt.html#modifyOtherKeys https://github.com/emacs-mirror/emacs/blob/d68f2b8681f8eeb6bbf1b4476a88f00b2962179e/lisp/term/xterm.el#L35 https://github.com/search?q=modifyOtherKeys&type=issues