summaryrefslogtreecommitdiff
path: root/src/term.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-14 17:35:21 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-14 17:35:21 +0100
commit681fc3fa782e99fe69ed2c83c3e29109d2d61e1a (patch)
tree7aa5986843ee75f7a1337c18b022cf22841b00c9 /src/term.h
parent6601b62943a19d4f8818c3638440663d67a17b6a (diff)
downloadvim-git-681fc3fa782e99fe69ed2c83c3e29109d2d61e1a.tar.gz
patch 8.2.2345: no focus events in a terminalv8.2.2345
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)
Diffstat (limited to 'src/term.h')
-rw-r--r--src/term.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/term.h b/src/term.h
index bff901e3c..a3d829999 100644
--- 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[]); // current terminal strings
#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