summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-18 14:59:25 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-18 14:59:25 +0000
commitfc6a65c6207dbefcd8b5f187148978f8d4111b2b (patch)
tree44ab21ea7bf632204830ed4e5516f89dae756dbe /cmd-set-option.c
parent0ca6f667e3e6f26e92db01ee2a769d0ba49509ca (diff)
Add three new session options: visual-activity, visual-bell, visual-content. If
these are enabled (and the monitor-activity, bell-actio and monitor-content options are configurated appropriately), when activity, a bell, or content is detected, a message is shown. Also tidy up the bell/activity/content code in server.c slightly and fix a couple of errors.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index c9b1fd99..fc665e84 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -75,6 +75,9 @@ const struct set_option_entry set_option_table[] = {
{ "status-right", SET_OPTION_STRING, 0, 0, NULL },
{ "status-right-length", SET_OPTION_NUMBER, 0, SHRT_MAX, NULL },
{ "status-utf8", SET_OPTION_FLAG, 0, 0, NULL },
+ { "visual-activity", SET_OPTION_FLAG, 0, 0, NULL },
+ { "visual-bell", SET_OPTION_FLAG, 0, 0, NULL },
+ { "visual-content", SET_OPTION_FLAG, 0, 0, NULL },
{ NULL, 0, 0, 0, NULL }
};