1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-24 06:04:47 +00:00

Add extkeys feature to tmux itself so nested tmux works, GitHub issue 4960.

This commit is contained in:
nicm
2026-04-05 14:29:04 +00:00
parent dfa9e9637e
commit bc22b0de19

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tty-features.c,v 1.32 2024/11/28 08:49:14 nicm Exp $ */
/* $OpenBSD: tty-features.c,v 1.33 2026/04/05 14:29:04 nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -464,23 +464,46 @@ tty_default_features(int *feat, const char *name, u_int version)
#define TTY_FEATURES_BASE_MODERN_XTERM \
"256,RGB,bpaste,clipboard,mouse,strikethrough,title"
{ .name = "mintty",
.features = TTY_FEATURES_BASE_MODERN_XTERM
",ccolour,cstyle,extkeys,margins,overline,usstyle"
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour,"
"cstyle,"
"extkeys,"
"margins,"
"overline,"
"usstyle"
},
{ .name = "tmux",
.features = TTY_FEATURES_BASE_MODERN_XTERM
",ccolour,cstyle,focus,overline,usstyle,hyperlinks"
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour,"
"cstyle,"
"extkeys,"
"focus,"
"overline,"
"usstyle,"
"hyperlinks"
},
{ .name = "rxvt-unicode",
.features = "256,bpaste,ccolour,cstyle,mouse,title,ignorefkeys"
.features = "256,"
"bpaste,"
"ccolour,"
"cstyle,"
"mouse,"
"title,"
"ignorefkeys"
},
{ .name = "iTerm2",
.features = TTY_FEATURES_BASE_MODERN_XTERM
",cstyle,extkeys,margins,usstyle,sync,osc7,hyperlinks"
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"cstyle,"
"extkeys,"
"margins,"
"usstyle,"
"sync,"
"osc7,hyperlinks"
},
{ .name = "foot",
.features = TTY_FEATURES_BASE_MODERN_XTERM
",cstyle,extkeys"
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"cstyle,"
"extkeys"
},
{ .name = "XTerm",
/*
@@ -488,8 +511,11 @@ tty_default_features(int *feat, const char *name, u_int version)
* disabled so not set it here - they will be added if
* secondary DA shows VT420.
*/
.features = TTY_FEATURES_BASE_MODERN_XTERM
",ccolour,cstyle,extkeys,focus"
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour,"
"cstyle,"
"extkeys,"
"focus"
}
};
u_int i;