mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Add an option to disable the window rename escape sequence, from Romain
Francoise.
This commit is contained in:
parent
e6519d3e27
commit
dcad13155b
2
input.c
2
input.c
@ -1558,6 +1558,8 @@ input_exit_rename(struct input_ctx *ictx)
|
|||||||
{
|
{
|
||||||
if (ictx->flags & INPUT_DISCARD)
|
if (ictx->flags & INPUT_DISCARD)
|
||||||
return;
|
return;
|
||||||
|
if (!options_get_number(&ictx->wp->window->options, "allow-rename"))
|
||||||
|
return;
|
||||||
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
||||||
|
|
||||||
xfree(ictx->wp->window->name);
|
xfree(ictx->wp->window->name);
|
||||||
|
@ -436,6 +436,11 @@ const struct options_table_entry window_options_table[] = {
|
|||||||
.default_num = 0
|
.default_num = 0
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ .name = "allow-rename",
|
||||||
|
.type = OPTIONS_TABLE_FLAG,
|
||||||
|
.default_num = 1
|
||||||
|
},
|
||||||
|
|
||||||
{ .name = "alternate-screen",
|
{ .name = "alternate-screen",
|
||||||
.type = OPTIONS_TABLE_FLAG,
|
.type = OPTIONS_TABLE_FLAG,
|
||||||
.default_num = 1
|
.default_num = 1
|
||||||
|
7
tmux.1
7
tmux.1
@ -2342,6 +2342,13 @@ this option is good for full-screen programs which support
|
|||||||
.Dv SIGWINCH
|
.Dv SIGWINCH
|
||||||
and poor for interactive programs such as shells.
|
and poor for interactive programs such as shells.
|
||||||
.Pp
|
.Pp
|
||||||
|
.It Xo Ic allow-rename
|
||||||
|
.Op Ic on | off
|
||||||
|
.Xc
|
||||||
|
Allow programs to change the window name using a terminal escape
|
||||||
|
sequence (\\033k...\\033\\\\).
|
||||||
|
The default is on.
|
||||||
|
.Pp
|
||||||
.It Xo Ic alternate-screen
|
.It Xo Ic alternate-screen
|
||||||
.Op Ic on | off
|
.Op Ic on | off
|
||||||
.Xc
|
.Xc
|
||||||
|
Loading…
Reference in New Issue
Block a user