mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Sync OpenBSD patchset 347:
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.
This commit is contained in:
44
tmux.1
44
tmux.1
@ -1,4 +1,4 @@
|
||||
.\" $Id: tmux.1,v 1.171 2009-09-22 14:22:20 tcunha Exp $
|
||||
.\" $Id: tmux.1,v 1.172 2009-09-23 15:00:09 tcunha Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
.\"
|
||||
@ -14,7 +14,7 @@
|
||||
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.Dd $Mdocdate: September 22 2009 $
|
||||
.Dd $Mdocdate: September 23 2009 $
|
||||
.Dt TMUX 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -23,7 +23,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm tmux
|
||||
.Bk -words
|
||||
.Op Fl 28dlqUuv
|
||||
.Op Fl 28dlquv
|
||||
.Op Fl f Ar file
|
||||
.Op Fl L Ar socket-name
|
||||
.Op Fl S Ar socket-path
|
||||
@ -154,8 +154,6 @@ If
|
||||
is specified, the default socket directory is not used and any
|
||||
.Fl L
|
||||
flag is ignored.
|
||||
.It Fl U
|
||||
Unlock the server.
|
||||
.It Fl u
|
||||
.Nm
|
||||
attempts to guess if the terminal is likely to support UTF-8 by checking the
|
||||
@ -337,8 +335,6 @@ rename-session -tfirst newname
|
||||
set-window-option -t:0 monitor-activity on
|
||||
|
||||
new-window ; split-window -d
|
||||
|
||||
bind-key D detach-client \e\; lock-server
|
||||
.Ed
|
||||
.Sh CLIENTS AND SESSIONS
|
||||
The following commands are available:
|
||||
@ -1213,17 +1209,20 @@ Set the maximum number of lines held in window history.
|
||||
This setting applies only to new windows - existing window histories are not
|
||||
resized and retain the limit at the point they were created.
|
||||
.It Ic lock-after-time Ar number
|
||||
Lock the server after
|
||||
Lock the server (like the
|
||||
.Ic lock-server
|
||||
command) after
|
||||
.Ar number
|
||||
seconds of inactivity.
|
||||
The default is off (set to 0).
|
||||
This has no effect as a session option; it must be set as a global option using
|
||||
.Fl g .
|
||||
When passwords are entered incorrectly,
|
||||
.Nm
|
||||
follows the behaviour of
|
||||
.Xr login 1
|
||||
and ignores further password attempts for an increasing timeout.
|
||||
.It Ic lock-command Ar command
|
||||
Command to run when locking each client.
|
||||
The default is to run
|
||||
.Xr lock 1
|
||||
with
|
||||
.Fl np .
|
||||
.It Ic message-attr Ar attributes
|
||||
Set status line message attributes, where
|
||||
.Ar attributes
|
||||
@ -1962,7 +1961,9 @@ if
|
||||
returns success.
|
||||
.It Ic lock-server
|
||||
.D1 (alias: Ic lock )
|
||||
Lock the server until a password is entered.
|
||||
Lock each client individually by running the command specified by the
|
||||
.Ic lock-command
|
||||
option.
|
||||
.It Ic run-shell Ar command
|
||||
.D1 (alias: Ic run )
|
||||
Execute
|
||||
@ -1975,21 +1976,6 @@ doesn't return success, the exit status is also displayed.
|
||||
.It Ic server-info
|
||||
.D1 (alias: Ic info )
|
||||
Show server information and terminal details.
|
||||
.It Xo Ic set-password
|
||||
.Op Fl c
|
||||
.Ar password
|
||||
.Xc
|
||||
.D1 (alias: Ic pass )
|
||||
Set the server password.
|
||||
If the
|
||||
.Fl c
|
||||
option is given, a pre-encrypted password may be specified.
|
||||
By default, the password is blank, thus any entered password will be accepted
|
||||
when unlocking the server (see the
|
||||
.Ic lock-server
|
||||
command).
|
||||
To prevent variable expansion when an encrypted password is read from a
|
||||
configuration file, enclose it in single quotes (').
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width "/etc/tmux.confXXX" -compact
|
||||
|
Reference in New Issue
Block a user