Add a test for Kitty keyboard protocol input parsing

Also note that kitty-keys-terminal.sh cannot run under the regress
Makefile, which uses env -i and so removes DISPLAY and HOME, and make the
Kitty test file modes match the rest of regress.
This commit is contained in:
Michael Grant
2026-09-17 06:16:11 +01:00
parent e1612fcab3
commit 7545954d00
3 changed files with 125 additions and 2 deletions

8
regress/kitty-keys-terminal.sh Executable file → Normal file
View File

@@ -2,8 +2,12 @@
# Test the Kitty keyboard protocol against a real terminal rather than against
# another copy of tmux. This drives kitty through its remote control interface
# so that kitty itself encodes the key presses. It is skipped unless kitty, a
# display and a kitty new enough to have send-key are all available.
# so that kitty itself encodes the key presses.
#
# This has to be run by hand from this directory. The Makefile runs tests with
# env -i, which removes DISPLAY and HOME, so kitty cannot start and this exits
# immediately without testing anything. It is also skipped unless kitty is
# installed and is new enough to have send-key.
PATH=/bin:/usr/bin