aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-11 23:22:04 +0800
committerGitHub <noreply@github.com>2022-04-11 23:22:04 +0800
commitda31e953b60d2957476c581695bcf2b659ff156e (patch)
tree495fafc9f9f362c18542cd1de364cdeb3658357f
parent96b461a00042c13610a62545b17fb792eb17c12e (diff)
downloadrneovim-da31e953b60d2957476c581695bcf2b659ff156e.tar.gz
rneovim-da31e953b60d2957476c581695bcf2b659ff156e.tar.bz2
rneovim-da31e953b60d2957476c581695bcf2b659ff156e.zip
docs(term.txt): add documentation about TUI input (#18072)
-rw-r--r--runtime/doc/term.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt
index f9b2271756..ddf52b65c6 100644
--- a/runtime/doc/term.txt
+++ b/runtime/doc/term.txt
@@ -108,6 +108,15 @@ and right scroll margins as well. If Nvim detects that the terminal is Xterm,
it will make use of this ability to speed up scrolling that is not the full
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
+exteneded 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.
+
*tui-colors*
Nvim uses 256 colours by default, ignoring |terminfo| for most terminal types,
including "linux" (whose virtual terminals have had 256-colour support since