Add an option allow-set-title to forbid applications from changing the

pane title, from someone in GitHub issue 3930.
This commit is contained in:
nicm
2024-04-10 07:36:25 +00:00
parent c62a9ca16b
commit 553d4cba79
4 changed files with 18 additions and 2 deletions

View File

@ -876,6 +876,14 @@ const struct options_table_entry options_table[] = {
"to rename windows."
},
{ .name = "allow-set-title",
.type = OPTIONS_TABLE_FLAG,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
.default_num = 1,
.text = "Whether applications are allowed to use the escape sequence "
"to set the pane title."
},
{ .name = "alternate-screen",
.type = OPTIONS_TABLE_FLAG,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,