Sync OpenBSD patchset 927:

Allow the initial context on prompts to be set with the new -I option to
command-prompt. From Tiago Cunha.
This commit is contained in:
Tiago Cunha
2011-07-03 21:52:50 +00:00
parent ff7343c203
commit e097f0b4ee
5 changed files with 77 additions and 28 deletions

11
tmux.1
View File

@ -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: June 5 2011 $
.Dd $Mdocdate: July 2 2011 $
.Dt TMUX 1
.Os
.Sh NAME
@ -2635,6 +2635,7 @@ session option.
Commands related to the status line are as follows:
.Bl -tag -width Ds
.It Xo Ic command-prompt
.Op Fl I Ar inputs
.Op Fl p Ar prompts
.Op Fl t Ar target-client
.Op Ar template
@ -2647,6 +2648,9 @@ to execute commands interactively.
If
.Ar template
is specified, it is used as the command.
If present,
.Fl I
is a comma-separated list of the initial text for each prompt.
If
.Fl p
is given,
@ -2657,7 +2661,10 @@ a single prompt is displayed, constructed from
if it is present, or
.Ql \&:
if not.
The
.Pp
Both
.Ar inputs
and
.Ar prompts
may contain the special character sequences supported by the
.Ic status-left