change option name to `allow-set-title` and update tmux.1

pull/3930/head
cache-miss 2024-04-10 15:20:11 +08:00
parent c124d74fd2
commit 075a95c236
3 changed files with 9 additions and 3 deletions

View File

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

View File

@ -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",

6
tmux.1
View File

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