From 075a95c2365af98a625121e6ea14e5fc9f3ab886 Mon Sep 17 00:00:00 2001 From: cache-miss Date: Wed, 10 Apr 2024 15:20:11 +0800 Subject: [PATCH] change option name to `allow-set-title` and update tmux.1 --- input.c | 2 +- options-table.c | 4 ++-- tmux.1 | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/input.c b/input.c index cc0d9a31..63b84ccb 100644 --- a/input.c +++ b/input.c @@ -2372,7 +2372,7 @@ input_exit_osc(struct input_ctx *ictx) switch (option) { case 0: case 2: - if (options_get_number(ictx->wp->options, "allow-rename-pane") == 1 && + if (options_get_number(ictx->wp->options, "allow-set-title") == 1 && screen_set_title(sctx->s, p) && wp != NULL) { notify_pane("pane-title-changed", wp); server_redraw_window_borders(wp->window); diff --git a/options-table.c b/options-table.c index be61bc8c..f3d46e01 100644 --- a/options-table.c +++ b/options-table.c @@ -875,12 +875,12 @@ const struct options_table_entry options_table[] = { "to rename windows." }, - { .name = "allow-rename-pane", + { .name = "allow-set-title", .type = OPTIONS_TABLE_FLAG, .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, .default_num = 0, .text = "Whether applications are allowed to use the escape sequence " - "to rename pane." + "to set title" }, { .name = "alternate-screen", diff --git a/tmux.1 b/tmux.1 index fbb94644..be51f648 100644 --- a/tmux.1 +++ b/tmux.1 @@ -4752,6 +4752,12 @@ they will be allowed even if the pane is invisible. Allow programs in the pane to change the window name using a terminal escape sequence (\eek...\ee\e\e). .Pp +.It Xo Ic allow-set-title +.Op Ic on | off +.Xc +Allow programs in the pane to change the title using a terminal escape +sequence (\eek...\ee\e\e). +.Pp .It Xo Ic alternate-screen .Op Ic on | off .Xc