Sync OpenBSD patchset 844:

Support -x and -y for new-session to specify the initial size of the
window if created detached with -d.
This commit is contained in:
Tiago Cunha
2011-01-21 23:55:26 +00:00
parent 6d9fe6c3aa
commit 7a68cff1db
2 changed files with 35 additions and 5 deletions

11
tmux.1
View File

@ -1,4 +1,4 @@
.\" $Id: tmux.1,v 1.294 2011-01-21 23:53:45 tcunha Exp $
.\" $Id: tmux.1,v 1.295 2011-01-21 23:55:26 tcunha Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@ -595,6 +595,8 @@ Lock all clients attached to
.Op Fl n Ar window-name
.Op Fl s Ar session-name
.Op Fl t Ar target-session
.Op Fl x Ar width
.Op Fl y Ar height
.Op Ar shell-command
.Xc
.D1 (alias: Ic new )
@ -608,6 +610,13 @@ is given.
and
.Ar shell-command
are the name of and shell command to execute in the initial window.
If
.Fl d
is used,
.Fl x
and
.Fl y
specify the size of the initial window (80 by 24 if not given).
.Pp
If run from a terminal, any
.Xr termios 4