summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-23 20:20:18 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-23 20:20:18 +0000
commit63a2e360cca2c70ab0a85d14771d3259d4b3aafa (patch)
tree9f0d9131e530cf658c2b7bf05e16539a1ebb0a28 /src/vim.h
parent0b6d6a186e961faa5b9058406234ffd93a7e6688 (diff)
patch 9.0.0930: cannot debug the Kitty keyboard protocol with TermDebugv9.0.0930
Problem: Cannot debug the Kitty keyboard protocol with TermDebug. Solution: Add Kitty keyboard protocol support to the libvterm fork. Recognize the escape sequences that the protocol generates. Add the 'keyprotocol' option to allow the user to specify for which terminal what protocol is to be used, instead of hard-coding this. Add recognizing the kitty keyboard protocol status.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 14630e6011..67751ffbe6 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2257,6 +2257,14 @@ typedef enum {
ESTACK_SCRIPT,
} estack_arg_T;
+// Return value of match_keyprotocol()
+typedef enum {
+ KEYPROTOCOL_NONE,
+ KEYPROTOCOL_MOK2,
+ KEYPROTOCOL_KITTY,
+ KEYPROTOCOL_FAIL
+} keyprot_T;
+
// Flags for assignment functions.
#define ASSIGN_VAR 0 // ":var" (nothing special)
#define ASSIGN_FINAL 0x01 // ":final"