diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-03-24 13:11:04 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 13:11:04 -0600 |
commit | b81c310d49f77c8f92ba2fdd99c7e0e9cb49d498 (patch) | |
tree | bca940d74bcb587de2dd2ef90f767574675d80ff | |
parent | 69f1de86dca28d6e339351082df1309ef4fbb6a6 (diff) | |
download | rneovim-b81c310d49f77c8f92ba2fdd99c7e0e9cb49d498.tar.gz rneovim-b81c310d49f77c8f92ba2fdd99c7e0e9cb49d498.tar.bz2 rneovim-b81c310d49f77c8f92ba2fdd99c7e0e9cb49d498.zip |
fix(tui): correct CSI sequence (#17844)
Follow up to #17771. The sequence `CSI > 4 ; 1 m` does not enable
distinguishing all available keys; notably, it excludes `<Tab>`. Using
`CSI > 4 ; 2 m` tells the terminal to disambiguate *all* keys, which is
much more useful.
The meaning of the final parameter is documented [here][1].
[1]: https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys
-rw-r--r-- | src/nvim/tui/tui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index bec55174c4..d27a13c583 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -2077,7 +2077,7 @@ static void augment_terminfo(TUIData *data, const char *term, long vte_version, // Kitty does not support these sequences; it only supports it's own CSI > 1 u which enables the // Kitty keyboard protocol data->unibi_ext.enable_extended_keys = (int)unibi_add_ext_str(ut, "ext.enable_extended_keys", - "\x1b[>4;1m"); + "\x1b[>4;2m"); data->unibi_ext.disable_extended_keys = (int)unibi_add_ext_str(ut, "ext.disable_extended_keys", "\x1b[>4;0m"); } |