Add extended keys flag for foot terminal.

This commit is contained in:
nicm 2024-11-28 08:49:14 +00:00
parent d361f21065
commit 72cd0eac29
2 changed files with 6 additions and 0 deletions

View File

@ -478,6 +478,10 @@ tty_default_features(int *feat, const char *name, u_int version)
.features = TTY_FEATURES_BASE_MODERN_XTERM .features = TTY_FEATURES_BASE_MODERN_XTERM
",cstyle,extkeys,margins,usstyle,sync,osc7,hyperlinks" ",cstyle,extkeys,margins,usstyle,sync,osc7,hyperlinks"
}, },
{ .name = "foot",
.features = TTY_FEATURES_BASE_MODERN_XTERM
",cstyle,extkeys"
},
{ .name = "XTerm", { .name = "XTerm",
/* /*
* xterm also supports DECSLRM and DECFRA, but they can be * xterm also supports DECSLRM and DECFRA, but they can be

View File

@ -1592,6 +1592,8 @@ tty_keys_extended_device_attributes(struct tty *tty, const char *buf,
tty_default_features(features, "XTerm", 0); tty_default_features(features, "XTerm", 0);
else if (strncmp(tmp, "mintty ", 7) == 0) else if (strncmp(tmp, "mintty ", 7) == 0)
tty_default_features(features, "mintty", 0); tty_default_features(features, "mintty", 0);
else if (strncmp(tmp, "foot(", 5) == 0)
tty_default_features(features, "foot", 0);
log_debug("%s: received extended DA %.*s", c->name, (int)*size, buf); log_debug("%s: received extended DA %.*s", c->name, (int)*size, buf);
free(c->term_type); free(c->term_type);