Add wait-for -L and -U for lock and unlock, from Thiago Padilha.

This commit is contained in:
Nicholas Marriott
2013-03-06 11:00:55 +00:00
parent 7fd4d49d56
commit bc3580fa06
2 changed files with 86 additions and 9 deletions

12
tmux.1
View File

@ -3554,16 +3554,20 @@ If the command doesn't return success, the exit status is also displayed.
.D1 (alias: Ic info )
Show server information and terminal details.
.It Xo Ic wait-for
.Fl S
.Fl LSU
.Ar channel
.Xc
.D1 (alias: Ic wait )
When used without
.Fl S ,
prevents the client from exiting until woken using
When used without options, prevents the client from exiting until woken using
.Ic wait-for
.Fl S
with the same channel.
When
.Fl L
is used, the channel is locked and any clients that try to lock the same
channel are made to wait until the channel is unlocked with
.Ic wait-for
.Fl U .
This command only works from outside
.Nm .
.El