summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-11 20:49:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-11 20:49:56 +0000
commita09f81c7ed125be3fd3535c31155c550973b3e55 (patch)
tree08cd9917d90f19f678922f3d0aa868a9b55389cf /usr.bin/tmux/options-table.c
parent9dae6e90952aaca8ad34c186222d2ee05c4343e5 (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 'usr.bin/tmux/options-table.c')
-rw-r--r--usr.bin/tmux/options-table.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c
index 8cb25b2c39c..a5987567a02 100644
--- a/usr.bin/tmux/options-table.c
+++ b/usr.bin/tmux/options-table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options-table.c,v 1.148 2021/08/06 09:19:02 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.149 2021/08/11 20:49:55 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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,