diff options
author | nicm <nicm> | 2016-04-29 15:00:48 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-04-29 15:00:48 +0000 |
commit | 0509be07404a4f4626bbdab56d858f657dc68604 (patch) | |
tree | ae0d8196081ac903121f0d2e4ac754a763a3689d /options-table.c | |
parent | 0d84fdd95303a6ed4dcd761425e35f3731b86725 (diff) | |
download | rtmux-0509be07404a4f4626bbdab56d858f657dc68604.tar.gz rtmux-0509be07404a4f4626bbdab56d858f657dc68604.tar.bz2 rtmux-0509be07404a4f4626bbdab56d858f657dc68604.zip |
Add option to include status text in the pane borders. If
pane-border-status is set to "top" or "bottom" (rather than "off"),
every pane has a permanent top or bottom border containing the text from
pane-border-format.
Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and
simplified by me.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index af0f41ed..c55ce715 100644 --- a/options-table.c +++ b/options-table.c @@ -51,6 +51,9 @@ const char *options_table_status_position_list[] = { const char *options_table_bell_action_list[] = { "none", "any", "current", "other", NULL }; +const char *options_table_pane_status_list[] = { + "off", "top", "bottom", NULL +}; /* Server options. */ const struct options_table_entry options_table[] = { @@ -693,6 +696,19 @@ const struct options_table_entry options_table[] = { .style = "pane-border-style" }, + { .name = "pane-border-format", + .type = OPTIONS_TABLE_STRING, + .scope = OPTIONS_TABLE_WINDOW, + .default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\"" + }, + + { .name = "pane-border-status", + .type = OPTIONS_TABLE_CHOICE, + .scope = OPTIONS_TABLE_WINDOW, + .choices = options_table_pane_status_list, + .default_num = 0 + }, + { .name = "pane-border-style", .type = OPTIONS_TABLE_STYLE, .scope = OPTIONS_TABLE_WINDOW, |