From 63a2e360cca2c70ab0a85d14771d3259d4b3aafa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 23 Nov 2022 20:20:18 +0000 Subject: patch 9.0.0930: cannot debug the Kitty keyboard protocol with TermDebug 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. --- src/vim.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/vim.h') 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" -- cgit v1.2.3