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 d5ed967f58
commit 21da45e5c3

View File

@@ -464,23 +464,46 @@ tty_default_features(int *feat, const char *name, u_int version)
#define TTY_FEATURES_BASE_MODERN_XTERM \ #define TTY_FEATURES_BASE_MODERN_XTERM \
"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,cstyle,extkeys,margins,overline,usstyle" "ccolour,"
"cstyle,"
"extkeys,"
"margins,"
"overline,"
"usstyle"
}, },
{ .name = "tmux", { .name = "tmux",
.features = TTY_FEATURES_BASE_MODERN_XTERM .features = TTY_FEATURES_BASE_MODERN_XTERM ","
",ccolour,cstyle,focus,overline,usstyle,hyperlinks" "ccolour,"
"cstyle,"
"extkeys,"
"focus,"
"overline,"
"usstyle,"
"hyperlinks"
}, },
{ .name = "rxvt-unicode", { .name = "rxvt-unicode",
.features = "256,bpaste,ccolour,cstyle,mouse,title,ignorefkeys" .features = "256,"
"bpaste,"
"ccolour,"
"cstyle,"
"mouse,"
"title,"
"ignorefkeys"
}, },
{ .name = "iTerm2", { .name = "iTerm2",
.features = TTY_FEATURES_BASE_MODERN_XTERM .features = TTY_FEATURES_BASE_MODERN_XTERM ","
",cstyle,extkeys,margins,usstyle,sync,osc7,hyperlinks" "cstyle,"
"extkeys,"
"margins,"
"usstyle,"
"sync,"
"osc7,hyperlinks"
}, },
{ .name = "foot", { .name = "foot",
.features = TTY_FEATURES_BASE_MODERN_XTERM .features = TTY_FEATURES_BASE_MODERN_XTERM ","
",cstyle,extkeys" "cstyle,"
"extkeys"
}, },
{ .name = "XTerm", { .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 * disabled so not set it here - they will be added if
* secondary DA shows VT420. * secondary DA shows VT420.
*/ */
.features = TTY_FEATURES_BASE_MODERN_XTERM .features = TTY_FEATURES_BASE_MODERN_XTERM ","
",ccolour,cstyle,extkeys,focus" "ccolour,"
"cstyle,"
"extkeys,"
"focus"
} }
}; };
u_int i; u_int i;