version 1.72, 2009/08/18 16:21:04 |
version 1.73, 2009/08/19 10:39:50 |
|
|
Commands related to the status line are as follows: |
Commands related to the status line are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Xo Ic command-prompt |
.It Xo Ic command-prompt |
|
.Op Fl p Ar prompts |
.Op Fl t Ar target-client |
.Op Fl t Ar target-client |
.Op Ar template |
.Op Ar template |
.Xc |
.Xc |
|
|
to execute commands interactively. |
to execute commands interactively. |
If |
If |
.Ar template |
.Ar template |
is specified, it is used as the command; any %% in the template will be |
is specified, it is used as the command. |
replaced by what is entered at the prompt. |
If |
|
.Fl p |
|
is given, |
|
.Ar prompts |
|
is a comma-separated list of prompts which are displayed in order; otherwise |
|
a single prompt is displayed, constructed from |
|
.Ar template |
|
if it is present, or |
|
.Ql \&: |
|
if not. |
|
Before the command is executed, the first occurrence of the string |
|
.Ql %% |
|
and all occurences of |
|
.Ql %1 |
|
are replaced by the response to the first prompt, the second |
|
.Ql %% |
|
and all |
|
.Ql %2 |
|
are replaced with the response to the second prompt, and so on for further |
|
prompts. Up to nine prompt responses may be replaced |
|
.Ns ( Ql %1 |
|
to |
|
.Ns Ql %9 ) . |
.It Xo Ic confirm-before |
.It Xo Ic confirm-before |
.Op Fl t Ar target-client |
.Op Fl t Ar target-client |
.Ar command |
.Ar command |
|
|
.Bd -literal -offset indent |
.Bd -literal -offset indent |
bind-key b set-option status |
bind-key b set-option status |
bind-key / command-prompt "split-window 'exec man %%'" |
bind-key / command-prompt "split-window 'exec man %%'" |
|
bind-key S command-prompt "new-window -n %1 'ssh %1'" |
.Ed |
.Ed |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr pty 4 |
.Xr pty 4 |