mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Add a default set of features for WezTerm.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user