Revamp extended keys support to more closely match xterm and support
authornicm <nicm@openbsd.org>
Wed, 21 Aug 2024 04:17:09 +0000 (04:17 +0000)
committernicm <nicm@openbsd.org>
Wed, 21 Aug 2024 04:17:09 +0000 (04:17 +0000)
commit719f5715a68555953a1997f39792665cc714f31c
treebd922232e9af192eaf2cce5e81f786b30c74be79
parent48434b30cb59a1ff3c53f43d26ff75c25bfba19a
Revamp extended keys support to more closely match xterm and support
mode 2 as well as mode 1. From Stanislav Kljuhhin (GitHub issue 4038).

This changes tmux to always request mode 2 from parent terminal, change
to an unambiguous internal representation of keys, and adds an option
(extended-keys-format) to control the format similar to the xterm(1)
formatOtherKeys resource.
15 files changed:
usr.bin/tmux/format.c
usr.bin/tmux/input-keys.c
usr.bin/tmux/input.c
usr.bin/tmux/key-string.c
usr.bin/tmux/menu.c
usr.bin/tmux/mode-tree.c
usr.bin/tmux/options-table.c
usr.bin/tmux/popup.c
usr.bin/tmux/screen-write.c
usr.bin/tmux/screen.c
usr.bin/tmux/status.c
usr.bin/tmux/tmux.1
usr.bin/tmux/tmux.h
usr.bin/tmux/tty-features.c
usr.bin/tmux/tty-keys.c