summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-03-18 21:46:03 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-03-18 21:46:03 +0000
commitdb3efc90e425089ec7c75dbf7a4ccabec9017a42 (patch)
tree9cbe4b1bc5e43a35960e77c83d3ff317658ef465 /usr.bin/tmux/options-table.c
parent8586bb4ae5e8cb561a58d37541c22e19bf61bea6 (diff)
The individual -fg, -bg and -attr options have been deprecated (in
favour of -style), undocumented and hidden from show-options since 2014. Remove them, except for status-fg and status-bg.
Diffstat (limited to 'usr.bin/tmux/options-table.c')
-rw-r--r--usr.bin/tmux/options-table.c249
1 files changed, 1 insertions, 248 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c
index 6f4f4c1b037..8948cfe6676 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.99 2019/03/18 20:53:33 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.100 2019/03/18 21:46:02 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -315,54 +315,12 @@ const struct options_table_entry options_table[] = {
.default_str = "lock -np"
},
- { .name = "message-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "message-style"
- },
-
- { .name = "message-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 3,
- .style = "message-style"
- },
-
- { .name = "message-command-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "message-command-style"
- },
-
- { .name = "message-command-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "message-command-style"
- },
-
- { .name = "message-command-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 3,
- .style = "message-command-style"
- },
-
{ .name = "message-command-style",
.type = OPTIONS_TABLE_STYLE,
.scope = OPTIONS_TABLE_SESSION,
.default_str = "bg=black,fg=yellow"
},
- { .name = "message-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "message-style"
- },
-
{ .name = "message-style",
.type = OPTIONS_TABLE_STYLE,
.scope = OPTIONS_TABLE_SESSION,
@@ -427,25 +385,16 @@ const struct options_table_entry options_table[] = {
.default_num = 1
},
- { .name = "status-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "status-style"
- },
-
{ .name = "status-bg",
.type = OPTIONS_TABLE_COLOUR,
.scope = OPTIONS_TABLE_SESSION,
.default_num = 2,
- .style = "status-style"
},
{ .name = "status-fg",
.type = OPTIONS_TABLE_COLOUR,
.scope = OPTIONS_TABLE_SESSION,
.default_num = 0,
- .style = "status-style"
},
{ .name = "status-format",
@@ -482,27 +431,6 @@ const struct options_table_entry options_table[] = {
.default_str = "[#S] "
},
- { .name = "status-left-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "status-left-style"
- },
-
- { .name = "status-left-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 8,
- .style = "status-left-style"
- },
-
- { .name = "status-left-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 8,
- .style = "status-left-style"
- },
-
{ .name = "status-left-length",
.type = OPTIONS_TABLE_NUMBER,
.scope = OPTIONS_TABLE_SESSION,
@@ -532,27 +460,6 @@ const struct options_table_entry options_table[] = {
"\"#{=21:pane_title}\" %H:%M %d-%b-%y"
},
- { .name = "status-right-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 0,
- .style = "status-right-style"
- },
-
- { .name = "status-right-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 8,
- .style = "status-right-style"
- },
-
- { .name = "status-right-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_SESSION,
- .default_num = 8,
- .style = "status-right-style"
- },
-
{ .name = "status-right-length",
.type = OPTIONS_TABLE_NUMBER,
.scope = OPTIONS_TABLE_SESSION,
@@ -667,27 +574,6 @@ const struct options_table_entry options_table[] = {
.default_num = 80
},
- { .name = "mode-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 0,
- .style = "mode-style"
- },
-
- { .name = "mode-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 3,
- .style = "mode-style"
- },
-
- { .name = "mode-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 0,
- .style = "mode-style"
- },
-
{ .name = "mode-keys",
.type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_WINDOW,
@@ -737,20 +623,6 @@ const struct options_table_entry options_table[] = {
.default_num = 0
},
- { .name = "pane-active-border-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "pane-active-border-style"
- },
-
- { .name = "pane-active-border-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 2,
- .style = "pane-active-border-style"
- },
-
{ .name = "pane-active-border-style",
.type = OPTIONS_TABLE_STYLE,
.scope = OPTIONS_TABLE_WINDOW,
@@ -765,20 +637,6 @@ const struct options_table_entry options_table[] = {
.default_num = 0
},
- { .name = "pane-border-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "pane-border-style"
- },
-
- { .name = "pane-border-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "pane-border-style"
- },
-
{ .name = "pane-border-format",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
@@ -830,95 +688,18 @@ const struct options_table_entry options_table[] = {
.default_str = "default"
},
- { .name = "window-status-activity-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = GRID_ATTR_REVERSE,
- .style = "window-status-activity-style"
- },
-
- { .name = "window-status-activity-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-activity-style"
- },
-
- { .name = "window-status-activity-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-activity-style"
- },
-
{ .name = "window-status-activity-style",
.type = OPTIONS_TABLE_STYLE,
.scope = OPTIONS_TABLE_WINDOW,
.default_str = "reverse"
},
- { .name = "window-status-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 0,
- .style = "window-status-style"
- },
-
- { .name = "window-status-bell-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = GRID_ATTR_REVERSE,
- .style = "window-status-bell-style"
- },
-
- { .name = "window-status-bell-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-bell-style"
- },
-
- { .name = "window-status-bell-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-bell-style"
- },
-
{ .name = "window-status-bell-style",
.type = OPTIONS_TABLE_STYLE,
.scope = OPTIONS_TABLE_WINDOW,
.default_str = "reverse"
},
- { .name = "window-status-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-style"
- },
-
- { .name = "window-status-current-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 0,
- .style = "window-status-current-style"
- },
-
- { .name = "window-status-current-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-current-style"
- },
-
- { .name = "window-status-current-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-current-style"
- },
-
{ .name = "window-status-current-format",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
@@ -931,40 +712,12 @@ const struct options_table_entry options_table[] = {
.default_str = "default"
},
- { .name = "window-status-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-style"
- },
-
{ .name = "window-status-format",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
.default_str = "#I:#W#{?window_flags,#{window_flags}, }"
},
- { .name = "window-status-last-attr",
- .type = OPTIONS_TABLE_ATTRIBUTES,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 0,
- .style = "window-status-last-style"
- },
-
- { .name = "window-status-last-bg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-last-style"
- },
-
- { .name = "window-status-last-fg",
- .type = OPTIONS_TABLE_COLOUR,
- .scope = OPTIONS_TABLE_WINDOW,
- .default_num = 8,
- .style = "window-status-last-style"
- },
-
{ .name = "window-status-last-style",
.type = OPTIONS_TABLE_STYLE,
.scope = OPTIONS_TABLE_WINDOW,