aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-window-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-27 20:22:33 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-27 20:22:33 +0000
commitc6bd9e20635e4acbf8a65409aa9189edaf3cbc89 (patch)
treeb879376b210ca58c82e3d9af88134c0b2c3343f1 /cmd-set-window-option.c
parentd697090fa451e9d78b31fdfff89f333d827ddd0a (diff)
downloadrtmux-c6bd9e20635e4acbf8a65409aa9189edaf3cbc89.tar.gz
rtmux-c6bd9e20635e4acbf8a65409aa9189edaf3cbc89.tar.bz2
rtmux-c6bd9e20635e4acbf8a65409aa9189edaf3cbc89.zip
Allow status, mode and message attributes to be changed by three new options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink
From Josh Elsasser, thanks!
Diffstat (limited to 'cmd-set-window-option.c')
-rw-r--r--cmd-set-window-option.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd-set-window-option.c b/cmd-set-window-option.c
index 9dbb4d5d..08b6ebdd 100644
--- a/cmd-set-window-option.c
+++ b/cmd-set-window-option.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-set-window-option.c,v 1.22 2009-01-20 19:35:03 nicm Exp $ */
+/* $Id: cmd-set-window-option.c,v 1.23 2009-01-27 20:22:33 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -61,6 +61,7 @@ const struct set_option_entry set_window_option_table[NSETWINDOWOPTION] = {
SET_OPTION_CHOICE, 0, 0, set_option_clock_mode_style_list },
{ "force-height", SET_OPTION_NUMBER, 0, INT_MAX, NULL },
{ "force-width", SET_OPTION_NUMBER, 0, INT_MAX, NULL },
+ { "mode-attr", SET_OPTION_ATTRIBUTES, 0, 0, NULL },
{ "mode-bg", SET_OPTION_COLOUR, 0, 0, NULL },
{ "mode-fg", SET_OPTION_COLOUR, 0, 0, NULL },
{ "mode-keys", SET_OPTION_CHOICE, 0, 0, set_option_mode_keys_list },
@@ -145,6 +146,9 @@ cmd_set_window_option_exec(struct cmd *self, struct cmd_ctx *ctx)
case SET_OPTION_COLOUR:
set_option_colour(ctx, oo, entry, data->value);
break;
+ case SET_OPTION_ATTRIBUTES:
+ set_option_attributes(ctx, oo, entry, data->value);
+ break;
case SET_OPTION_FLAG:
set_option_flag(ctx, oo, entry, data->value);
break;