diff options
author | nicm <nicm> | 2021-08-11 20:49:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-11 20:49:55 +0000 |
commit | 7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af (patch) | |
tree | 7967e985cb56c93a0fd80dfebe01079c4dbdd43e /options-table.c | |
parent | 01fd4b997e3a0a74ea57d6830cf97f98ea2c2a7c (diff) | |
download | rtmux-7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af.tar.gz rtmux-7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af.tar.bz2 rtmux-7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af.zip |
Break the colour palette into a struct rather than just a single array
and use that to support the OSC palette-setting sequences in popups.
Also add a pane-colours array option to specify the defaults. GitHub
issue 2815.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index e0ae993a..2a6f262a 100644 --- a/options-table.c +++ b/options-table.c @@ -185,6 +185,7 @@ const struct options_name_map options_other_names[] = { { "display-panes-color", "display-panes-colour" }, { "display-panes-active-color", "display-panes-active-colour" }, { "clock-mode-color", "clock-mode-colour" }, + { "pane-colors", "pane-colours" }, { NULL, NULL } }; @@ -973,6 +974,14 @@ const struct options_table_entry options_table[] = { .text = "Style of the pane status lines." }, + { .name = "pane-colours", + .type = OPTIONS_TABLE_COLOUR, + .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, + .default_str = "", + .flags = OPTIONS_TABLE_IS_ARRAY, + .text = "The default colour palette for colours zero to 255." + }, + { .name = "remain-on-exit", .type = OPTIONS_TABLE_CHOICE, .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, |