diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-01 17:36:15 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-04 22:37:45 +0800 |
commit | 03c9cf3feb0bdfdf4f6c1825440067b85a1fb619 (patch) | |
tree | 94b74a7922ce428687a75cb250ce4f70bf2d0d4c /runtime | |
parent | 33ed85a2f62d2b8dbac131cb61d03ac601808342 (diff) | |
download | rneovim-03c9cf3feb0bdfdf4f6c1825440067b85a1fb619.tar.gz rneovim-03c9cf3feb0bdfdf4f6c1825440067b85a1fb619.tar.bz2 rneovim-03c9cf3feb0bdfdf4f6c1825440067b85a1fb619.zip |
test: add tests for keypad keys from kitty keyboard protocol
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/term.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt index 9969fc0a79..cd6798a5de 100644 --- a/runtime/doc/term.txt +++ b/runtime/doc/term.txt @@ -111,11 +111,17 @@ width of the terminal. *tui-input* Nvim uses libtermkey to convert terminal escape sequences to key codes. |terminfo| is used first, and CSI sequences not in |terminfo| (including -extended keys a.k.a. modifyOtherKeys or `CSI u`) can also be parsed. +extended keys a.k.a. modifyOtherKeys or "CSI u") can also be parsed. For example, when running Nvim in tmux, this makes Nvim leave Insert mode and go to the window below: > - tmux send-keys 'Escape' [ 2 7 u 'C-W' j -Where `'Escape' [ 2 7 u` is an unambiguous `CSI u` sequence for the <Esc> key. + tmux send-keys 'Escape' [ 2 7 u 'C-W' j +Where `'Escape' [ 2 7 u` is an unambiguous "CSI u" sequence for the <Esc> key. + +The kitty keyboard protocol https://sw.kovidgoyal.net/kitty/keyboard-protocol/ +is partially supported, including keypad keys in Unicode Private Use Area. +For example, this sequence is recognized by Nvim as <C-kEnter>: > + CSI 57414 ; 5 u +and can be used differently from <C-CR> in mappings. *tui-modifyOtherKeys* *tui-csiu* Historically, terminal emulators could not distinguish between certain control |