summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-24 07:37:11 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-24 07:37:11 +0100
commit61550ac2e005a9cc2b8d540e304067f49c7ace24 (patch)
tree527698a57d5206d08667ff4f8e888f19a6ca72c5 /tty-term.c
parent5d69b9c4a7e8adc570e965189de0e5936fbf8e1c (diff)
Add feature and capabilities for focus reporting. Also document AX and XT even
though they aren't tmux's.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index 102359f1..4217d6d6 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -86,6 +86,7 @@ static const struct tty_term_code_entry tty_term_codes[] = {
[TTYC_DIM] = { TTYCODE_STRING, "dim" },
[TTYC_DL1] = { TTYCODE_STRING, "dl1" },
[TTYC_DL] = { TTYCODE_STRING, "dl" },
+ [TTYC_DSFCS] = { TTYCODE_STRING, "Dsfcs" },
[TTYC_DSBP] = { TTYCODE_STRING, "Dsbp" },
[TTYC_DSMG] = { TTYCODE_STRING, "Dsmg" },
[TTYC_E3] = { TTYCODE_STRING, "E3" },
@@ -95,6 +96,7 @@ static const struct tty_term_code_entry tty_term_codes[] = {
[TTYC_EL] = { TTYCODE_STRING, "el" },
[TTYC_ENACS] = { TTYCODE_STRING, "enacs" },
[TTYC_ENBP] = { TTYCODE_STRING, "Enbp" },
+ [TTYC_ENFCS] = { TTYCODE_STRING, "Enfcs" },
[TTYC_ENMG] = { TTYCODE_STRING, "Enmg" },
[TTYC_FSL] = { TTYCODE_STRING, "fsl" },
[TTYC_HOME] = { TTYCODE_STRING, "home" },
@@ -567,7 +569,7 @@ tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)
/* Add some features if terminal has XT. */
if (tty_term_flag(term, TTYC_XT))
- tty_add_features(feat, "bpaste,title", ",");
+ tty_add_features(feat, "bpaste,focus,title", ",");
/* Apply the features and overrides again. */
tty_apply_features(term, *feat);