sync code with last fixes and improvements from OpenBSD

This commit is contained in:
purplerain 2023-08-11 09:11:00 +00:00
parent 371ae113c6
commit 454dab66ed
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
95 changed files with 1784 additions and 2042 deletions

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: tmux.1,v 1.924 2023/07/11 16:09:09 nicm Exp $
.\" $OpenBSD: tmux.1,v 1.926 2023/08/08 08:21:30 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
@ -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: July 11 2023 $
.Dd $Mdocdate: August 8 2023 $
.Dt TMUX 1
.Os
.Sh NAME
@ -1782,29 +1782,35 @@ Exit copy mode.
.Xc
Clear the current selection.
.It Xo
.Ic copy-end-of-line [<prefix>]
.Ic copy-end-of-line
.Op Ar prefix
.Xc
Copy from the cursor position to the end of the line.
.Ar prefix
is used to name the new paste buffer.
.It Xo
.Ic copy-end-of-line-and-cancel [<prefix>]
.Ic copy-end-of-line-and-cancel
.Op Ar prefix
.Xc
Copy from the cursor position and exit copy mode.
.It Xo
.Ic copy-line [<prefix>]
.Ic copy-line
.Op Ar prefix
.Xc
Copy the entire line.
.It Xo
.Ic copy-line-and-cancel [<prefix>]
.Ic copy-line-and-cancel
.Op Ar prefix
.Xc
Copy the entire line and exit copy mode.
.It Xo
.Ic copy-selection [<prefix>]
.Ic copy-selection
.Op Ar prefix
.Xc
Copies the current selection.
.It Xo
.Ic copy-selection-and-cancel [<prefix>]
.Ic copy-selection-and-cancel
.Op Ar prefix
(vi: Enter)
(emacs: M-w)
.Xc
@ -1840,7 +1846,8 @@ Move the cursor up.
.Xc
Move the cursor to the end of the line.
.It Xo
.Ic goto-line <line>
.Ic goto-line
.Ar line
(vi: :)
(emacs: g)
.Xc
@ -1864,13 +1871,15 @@ Scroll to the top of the history.
.Xc
Repeat the last jump.
.It Xo
.Ic jump-backward <to>
.Ic jump-backward
.Ar to
(vi: F)
(emacs: F)
.Xc
Jump backwards to the specified text.
.It Xo
.Ic jump-forward <to>
.Ic jump-forward
.Ar to
(vi: f)
(emacs: f)
.Xc
@ -1901,6 +1910,7 @@ Move to the next matching bracket.
Move to the next paragraph.
.It Xo
.Ic next-prompt
.Op Fl o
.Xc
Move to the next prompt.
.It Xo
@ -1933,6 +1943,7 @@ Move to the previous matching bracket.
Move to the previous paragraph.
.It Xo
.Ic previous-prompt
.Op Fl o
.Xc
Move to the previous prompt.
.It Xo
@ -1960,12 +1971,14 @@ Refresh the content from the pane.
.Xc
Repeat the last search.
.It Xo
.Ic search-backward <for>
.Ic search-backward
.Ar text
(vi: ?)
.Xc
Search backwards for the specified text.
.It Xo
.Ic search-forward <for>
.Ic search-forward
.Ar text
(vi: /)
.Xc
Search forward for the specified text.
@ -2033,6 +2046,9 @@ move between shell prompts, but require the shell to emit an escape sequence
.Nm
where the prompts are located; if the shell does not do this, these commands
will do nothing.
The
.Fl o
flag jumps to the beginning of the command output instead of the shell prompt.
.Pp
Copy commands may take an optional buffer prefix argument which is used
to generate the buffer name (the default is
@ -4073,6 +4089,26 @@ The default is to run
.Xr lock 1
with
.Fl np .
.It Ic menu-style Ar style
Set the menu style.
See the
.Sx STYLES
section on how to specify
.Ar style .
Attributes are ignored.
.It Ic menu-border-style Ar style
Set the menu border style.
See the
.Sx STYLES
section on how to specify
.Ar style .
Attributes are ignored.
.It Ic menu-border-lines Ar type
Set the type of characters used for drawing menu borders.
See
.Ic popup-border-lines
for possible values for
.Ar type .
.It Ic message-command-style Ar style
Set status line message command style.
This is used for the command prompt with
@ -4540,20 +4576,18 @@ Attributes are ignored.
.Pp
.It Ic popup-style Ar style
Set the popup style.
For how to specify
.Ar style ,
see the
See the
.Sx STYLES
section.
section on how to specify
.Ar style .
Attributes are ignored.
.Pp
.It Ic popup-border-style Ar style
Set the popup border style.
For how to specify
.Ar style ,
see the
See the
.Sx STYLES
section.
section on how to specify
.Ar style .
Attributes are ignored.
.Pp
.It Ic popup-border-lines Ar type
@ -6028,9 +6062,12 @@ the default is
.Tg menu
.It Xo Ic display-menu
.Op Fl O
.Op Fl b Ar border-lines
.Op Fl c Ar target-client
.Op Fl s Ar style
.Op Fl S Ar border-style
.Op Fl t Ar target-pane
.Op Fl S Ar starting-choice
.Op Fl C Ar starting-choice
.Op Fl T Ar title
.Op Fl x Ar position
.Op Fl y Ar position
@ -6057,10 +6094,24 @@ may not be chosen.
The name may be empty for a separator line, in which case both the key and
command should be omitted.
.Pp
.Fl b
sets the type of characters used for drawing menu borders.
See
.Ic popup-border-lines
for possible values for
.Ar border-lines .
.Pp
.Fl s
sets the style for the menu and
.Fl S
sets the style for the menu border (see
.Sx STYLES ) .
.Pp
.Fl T
is a format for the menu title (see
.Sx FORMATS ) .
.Fl S
.Pp
.Fl C
sets the menu item selected by default, if the menu is not bound to a mouse key
binding.
.Pp
@ -6175,8 +6226,8 @@ forwards any input read from stdin to the empty pane given by
.Op Fl d Ar start-directory
.Op Fl e Ar environment
.Op Fl h Ar height
.Op Fl s Ar style
.Op Fl S Ar border-style
.Op Fl s Ar border-style
.Op Fl S Ar style
.Op Fl t Ar target-pane
.Op Fl T Ar title
.Op Fl w Ar width
@ -6219,7 +6270,7 @@ If omitted, half of the terminal size is used.
does not surround the popup by a border.
.Pp
.Fl b
sets the type of border line for the popup.
sets the type of characters used for drawing popup borders.
When
.Fl B
is specified, the
@ -6233,12 +6284,8 @@ for possible values for
.Fl s
sets the style for the popup and
.Fl S
sets the style for the popup border.
For how to specify
.Ar style ,
see the
.Sx STYLES
section.
sets the style for the popup border (see
.Sx STYLES ) .
.Pp
.Fl e
takes the form