summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-19 14:35:56 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-19 14:35:56 +0000
commit376c808b503dbee0991b5eb4027ca6e4f4ece702 (patch)
tree20bca8cda47aa9f12c2908a3629c4e1e3ffc7478 /cmd-set-option.c
parent4cf6396e4cebf12b9d24cd23bd4246e6f6f1c1ba (diff)
Add three new session options: visual-activity, visual-bell, visual-content.
If these are enabled (and the monitor-activity, bell-action 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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 0457a2cc..608f26c4 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-set-option.c,v 1.67 2009-07-15 17:44:47 nicm Exp $ */
+/* $Id: cmd-set-option.c,v 1.68 2009-07-19 14:35:56 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 }
};