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:
@@ -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;
|
||||||
|
|||||||
@@ -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