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

@@ -465,45 +465,54 @@ tty_default_features(int *feat, const char *name, u_int version)
"256,RGB,bpaste,clipboard,mouse,strikethrough,title" "256,RGB,bpaste,clipboard,mouse,strikethrough,title"
{ .name = "mintty", { .name = "mintty",
.features = TTY_FEATURES_BASE_MODERN_XTERM "," .features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour," "ccolour,"
"cstyle," "cstyle,"
"extkeys," "extkeys,"
"margins," "margins,"
"overline," "overline,"
"usstyle" "usstyle"
}, },
{ .name = "tmux", { .name = "tmux",
.features = TTY_FEATURES_BASE_MODERN_XTERM "," .features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour," "ccolour,"
"cstyle," "cstyle,"
"extkeys," "extkeys,"
"focus," "focus,"
"overline," "overline,"
"usstyle," "usstyle,"
"hyperlinks" "hyperlinks"
}, },
{ .name = "rxvt-unicode", { .name = "rxvt-unicode",
.features = "256," .features = "256,"
"bpaste," "bpaste,"
"ccolour," "ccolour,"
"cstyle," "cstyle,"
"mouse," "mouse,"
"title," "title,"
"ignorefkeys" "ignorefkeys"
}, },
{ .name = "iTerm2", { .name = "iTerm2",
.features = TTY_FEATURES_BASE_MODERN_XTERM "," .features = TTY_FEATURES_BASE_MODERN_XTERM ","
"cstyle," "cstyle,"
"extkeys," "extkeys,"
"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",
/* /*
@@ -512,10 +521,10 @@ tty_default_features(int *feat, const char *name, u_int version)
* secondary DA shows VT420. * secondary DA shows VT420.
*/ */
.features = TTY_FEATURES_BASE_MODERN_XTERM "," .features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour," "ccolour,"
"cstyle," "cstyle,"
"extkeys," "extkeys,"
"focus" "focus"
} }
}; };
u_int i; u_int i;

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);