summaryrefslogtreecommitdiffstats
path: root/cmd-show-options.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-show-options.c
parentd697090fa451e9d78b31fdfff89f333d827ddd0a (diff)
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-options.c')
-rw-r--r--cmd-show-options.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c
index e88d8ac8..4fb8f804 100644
--- a/cmd-show-options.c
+++ b/cmd-show-options.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-show-options.c,v 1.10 2009-01-19 18:23:40 nicm Exp $ */
+/* $Id: cmd-show-options.c,v 1.11 2009-01-27 20:22:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -86,6 +86,11 @@ cmd_show_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)