aboutsummaryrefslogtreecommitdiff
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2022-03-17 11:35:37 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-04-06 14:19:51 +0100
commitc0508c9321d2bd3b94a850d953db9532854b45cd (patch)
treee9fb4edc47ef2e11cc99f4034a6dcd0eed6a97fb /options-table.c
parentfe44b105e4a2d1d7baa12b37d0b84d8c6be9addc (diff)
downloadrtmux-c0508c9321d2bd3b94a850d953db9532854b45cd.tar.gz
rtmux-c0508c9321d2bd3b94a850d953db9532854b45cd.tar.bz2
rtmux-c0508c9321d2bd3b94a850d953db9532854b45cd.zip
Add an option (scroll-on-clear) to control if tmux scrolls into history
on clear, from Robert Lange in GitHub issue 3121.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c
index 3aa72e78..a816f6ac 100644
--- a/options-table.c
+++ b/options-table.c
@@ -1080,6 +1080,14 @@ const struct options_table_entry options_table[] = {
"remain-on-exit is enabled."
},
+ { .name = "scroll-on-clear",
+ .type = OPTIONS_TABLE_FLAG,
+ .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
+ .default_num = 1,
+ .text = "Whether the contents of the screen should be scrolled into"
+ "history when clearing the whole screen."
+ },
+
{ .name = "synchronize-panes",
.type = OPTIONS_TABLE_FLAG,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,