mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Sync OpenBSD patchset 356:
Add a key string for space ("Space") and document the names, suggested by guenther@. Also document how to bind " and ', suggested by miod@.
This commit is contained in:
parent
6b3ec44ee9
commit
2931277608
@ -1,4 +1,4 @@
|
|||||||
/* $Id: key-string.c,v 1.22 2009-07-28 23:13:00 tcunha Exp $ */
|
/* $Id: key-string.c,v 1.23 2009-10-05 18:21:58 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -57,6 +57,7 @@ struct {
|
|||||||
{ "PPage", KEYC_PPAGE },
|
{ "PPage", KEYC_PPAGE },
|
||||||
{ "Tab", '\011' },
|
{ "Tab", '\011' },
|
||||||
{ "BTab", KEYC_BTAB },
|
{ "BTab", KEYC_BTAB },
|
||||||
|
{ "Space", ' ' },
|
||||||
{ "BSpace", KEYC_BSPACE },
|
{ "BSpace", KEYC_BSPACE },
|
||||||
{ "Enter", '\r' },
|
{ "Enter", '\r' },
|
||||||
{ "Escape", '\033' },
|
{ "Escape", '\033' },
|
||||||
|
56
tmux.1
56
tmux.1
@ -1,4 +1,4 @@
|
|||||||
.\" $Id: tmux.1,v 1.174 2009-09-25 17:51:39 tcunha Exp $
|
.\" $Id: tmux.1,v 1.175 2009-10-05 18:21:58 tcunha Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
.\"
|
.\"
|
||||||
@ -14,7 +14,7 @@
|
|||||||
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||||
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: September 24 2009 $
|
.Dd $Mdocdate: October 4 2009 $
|
||||||
.Dt TMUX 1
|
.Dt TMUX 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -978,6 +978,50 @@ destroyed.
|
|||||||
Move up a pane.
|
Move up a pane.
|
||||||
.El
|
.El
|
||||||
.Sh KEY BINDINGS
|
.Sh KEY BINDINGS
|
||||||
|
.Nm
|
||||||
|
allows a command to be bound to most keys, with or without a prefix key.
|
||||||
|
When specifying keys, most represent themselves (for example
|
||||||
|
.Ql A
|
||||||
|
to
|
||||||
|
.Ql Z
|
||||||
|
).
|
||||||
|
Ctrl keys may be prefixed with
|
||||||
|
.Ql C-
|
||||||
|
or
|
||||||
|
.Ql ^
|
||||||
|
, and Alt (meta) with
|
||||||
|
.Ql M- .
|
||||||
|
In addition, the following special key names are accepted:
|
||||||
|
.Em BSpace ,
|
||||||
|
.Em BTab ,
|
||||||
|
.Em DC
|
||||||
|
(Delete),
|
||||||
|
.Em End ,
|
||||||
|
.Em Enter ,
|
||||||
|
.Em Escape ,
|
||||||
|
.Em F1
|
||||||
|
to
|
||||||
|
.Em F20 ,
|
||||||
|
.Em Home ,
|
||||||
|
.Em IC
|
||||||
|
(Insert),
|
||||||
|
.Em NPage
|
||||||
|
(Page Up),
|
||||||
|
.Em PPage
|
||||||
|
(Page Down),
|
||||||
|
.Em Space ,
|
||||||
|
and
|
||||||
|
.Em Tab .
|
||||||
|
Note that to bind the
|
||||||
|
.Ql \&"
|
||||||
|
or
|
||||||
|
.Ql '
|
||||||
|
keys, quotation marks are necessary, for example:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
bind-key '"' split-window
|
||||||
|
bind-key "'" select-prompt
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
Commands related to key bindings are as follows:
|
Commands related to key bindings are as follows:
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Xo Ic bind-key
|
.It Xo Ic bind-key
|
||||||
@ -990,14 +1034,6 @@ Bind key
|
|||||||
.Ar key
|
.Ar key
|
||||||
to
|
to
|
||||||
.Ar command .
|
.Ar command .
|
||||||
Keys may be specified prefixed with
|
|
||||||
.Ql C-
|
|
||||||
or
|
|
||||||
.Ql ^
|
|
||||||
for Ctrl keys, or
|
|
||||||
.Ql M-
|
|
||||||
for Alt (meta) keys.
|
|
||||||
.Pp
|
|
||||||
By default (without
|
By default (without
|
||||||
.Fl t )
|
.Fl t )
|
||||||
the primary key bindings are modified (those normally activated with the prefix
|
the primary key bindings are modified (those normally activated with the prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user