Add a default set of features for WezTerm.

This commit is contained in:
nicm
2026-04-22 06:57:08 +00:00
parent a97cfe513d
commit baf55e4616
2 changed files with 42 additions and 31 deletions

View File

@@ -498,13 +498,22 @@ tty_default_features(int *feat, const char *name, u_int version)
"margins," "margins,"
"usstyle," "usstyle,"
"sync," "sync,"
"osc7,hyperlinks" "osc7,"
"hyperlinks"
}, },
{ .name = "foot", { .name = "foot",
.features = TTY_FEATURES_BASE_MODERN_XTERM "," .features = TTY_FEATURES_BASE_MODERN_XTERM ","
"cstyle," "cstyle,"
"extkeys" "extkeys"
}, },
{ .name = "WezTerm",
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour,"
"cstyle,"
"extkeys,"
"focus,"
"usstyle"
},
{ .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

@@ -1640,6 +1640,8 @@ tty_keys_extended_device_attributes(struct tty *tty, const char *buf,
tty_default_features(features, "mintty", 0); tty_default_features(features, "mintty", 0);
else if (strncmp(tmp, "foot(", 5) == 0) else if (strncmp(tmp, "foot(", 5) == 0)
tty_default_features(features, "foot", 0); tty_default_features(features, "foot", 0);
else if (strncmp(tmp, "WezTerm ", 7) == 0)
tty_default_features(features, "WezTerm", 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);