summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-23 06:18:47 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-23 06:18:47 +0000
commitb01dcd79715d968cb39dc892215c2f6921d43974 (patch)
tree1ccd6b4de2d9910d190fc42917d751a92edba628 /cmd-set-option.c
parent962fa20b36cc6d38d9a44612441f3f706c29b71e (diff)
Remove the internal tmux locking and instead detach each client and run the
command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.
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 3a6bf022..4984cb1a 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -62,6 +62,7 @@ const struct set_option_entry set_option_table[] = {
{ "display-time", SET_OPTION_NUMBER, 1, INT_MAX, NULL },
{ "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 },
{ "message-attr", SET_OPTION_ATTRIBUTES, 0, 0, NULL },
{ "message-bg", SET_OPTION_COLOUR, 0, 0, NULL },
{ "message-fg", SET_OPTION_COLOUR, 0, 0, NULL },