diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 20:22:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 20:22:33 +0000 |
commit | c6bd9e20635e4acbf8a65409aa9189edaf3cbc89 (patch) | |
tree | b879376b210ca58c82e3d9af88134c0b2c3343f1 /cmd-show-window-options.c | |
parent | d697090fa451e9d78b31fdfff89f333d827ddd0a (diff) | |
download | rtmux-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-show-window-options.c')
-rw-r--r-- | cmd-show-window-options.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd-show-window-options.c b/cmd-show-window-options.c index 0af1311b..ca7f900e 100644 --- a/cmd-show-window-options.c +++ b/cmd-show-window-options.c @@ -1,4 +1,4 @@ -/* $Id: cmd-show-window-options.c,v 1.6 2009-01-19 18:23:40 nicm Exp $ */ +/* $Id: cmd-show-window-options.c,v 1.7 2009-01-27 20:22:33 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -86,6 +86,11 @@ cmd_show_window_options_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->print(ctx, "%s %s", entry->name, colour_tostring(vn)); break; + case SET_OPTION_ATTRIBUTES: + vn = options_get_number(oo, entry->name); + ctx->print(ctx, "%s %s", + entry->name, attributes_tostring(vn)); + break; case SET_OPTION_FLAG: vn = options_get_number(oo, entry->name); if (vn) |