summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-11 20:49:55 +0000
committernicm <nicm>2021-08-11 20:49:55 +0000
commit7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af (patch)
tree7967e985cb56c93a0fd80dfebe01079c4dbdd43e /options-table.c
parent01fd4b997e3a0a74ea57d6830cf97f98ea2c2a7c (diff)
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.c9
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,