summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-10 09:46:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-10 09:46:11 +0000
commitb7d031cc92a1d9ac3ca8c2a71b76b0a78ea77465 (patch)
tree394d17a68e2b92bf82be36b23206037d25adf7b9 /cmd-set-option.c
parent93b353d3532cc12e7e8ca05f59a2199398252df5 (diff)
Support for individual session idle time locking. May be enabled by turning off
the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 4984cb1a..5fbb9e85 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -63,6 +63,7 @@ const struct set_option_entry set_option_table[] = {
{ "history-limit", SET_OPTION_NUMBER, 0, INT_MAX, NULL },
{ "lock-after-time", SET_OPTION_NUMBER, 0, INT_MAX, NULL },
{ "lock-command", SET_OPTION_STRING, 0, 0, NULL },
+ { "lock-server", SET_OPTION_FLAG, 0, 0, NULL },
{ "message-attr", SET_OPTION_ATTRIBUTES, 0, 0, NULL },
{ "message-bg", SET_OPTION_COLOUR, 0, 0, NULL },
{ "message-fg", SET_OPTION_COLOUR, 0, 0, NULL },