diff src/term.h @ 23606:f98939164e91 v8.2.2345

patch 8.2.2345: no focus events in a terminal Commit: https://github.com/vim/vim/commit/681fc3fa782e99fe69ed2c83c3e29109d2d61e1a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 14 17:35:21 2021 +0100 patch 8.2.2345: no focus events in a terminal Problem: No focus events in a terminal. Solution: Add the t_fd and t_fe termcap entries and implement detecting focus events. (Hayaki Saito, Magnus Gro?, closes #7673, closes #609, closes #5526)
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Jan 2021 17:45:05 +0100
parents 68c206d3a251
children
line wrap: on
line diff
--- a/src/term.h
+++ b/src/term.h
@@ -109,10 +109,12 @@ enum SpecialKey
     KS_CST,	// save window title
     KS_CRT,	// restore window title
     KS_SSI,	// save icon text
-    KS_SRI	// restore icon text
+    KS_SRI,	// restore icon text
+    KS_FD,	// disable focus event tracking
+    KS_FE	// enable focus event tracking
 };
 
-#define KS_LAST	    KS_SRI
+#define KS_LAST	    KS_FE
 
 /*
  * the terminal capabilities are stored in this array
@@ -212,6 +214,8 @@ extern char_u *(term_strings[]);    // c
 #define T_CRT	(TERM_STR(KS_CRT))	// restore window title
 #define T_SSI	(TERM_STR(KS_SSI))	// save icon text
 #define T_SRI	(TERM_STR(KS_SRI))	// restore icon text
+#define T_FD	(TERM_STR(KS_FD))	// disable focus event tracking
+#define T_FE	(TERM_STR(KS_FE))	// enable focus event tracking
 
 typedef enum {
     TMODE_COOK,	    // terminal mode for external cmds and Ex mode