mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add a capability for OSC 7 and use it similarly to how the title is set
(and controlled by the same set-titles option). GitHub issue 3127.
This commit is contained in:
@ -53,6 +53,18 @@ static const struct tty_feature tty_feature_title = {
|
||||
0
|
||||
};
|
||||
|
||||
/* Terminal has OSC 7 working directory. */
|
||||
static const char *tty_feature_osc7_capabilities[] = {
|
||||
"Swd=\\E]7;",
|
||||
"fsl=\\a",
|
||||
NULL
|
||||
};
|
||||
static const struct tty_feature tty_feature_osc7 = {
|
||||
"osc7",
|
||||
tty_feature_osc7_capabilities,
|
||||
0
|
||||
};
|
||||
|
||||
/* Terminal has mouse support. */
|
||||
static const char *tty_feature_mouse_capabilities[] = {
|
||||
"kmous=\\E[M",
|
||||
@ -249,6 +261,7 @@ static const struct tty_feature *tty_features[] = {
|
||||
&tty_feature_focus,
|
||||
&tty_feature_margins,
|
||||
&tty_feature_mouse,
|
||||
&tty_feature_osc7,
|
||||
&tty_feature_overline,
|
||||
&tty_feature_rectfill,
|
||||
&tty_feature_rgb,
|
||||
|
Reference in New Issue
Block a user