improve description of default Emacs mode keybindings

This commit is contained in:
tg
2016-06-25 23:51:21 +00:00
parent 58f36a9f3a
commit 8a93f7d1dd

41
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.397 2016/06/25 23:49:13 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.398 2016/06/25 23:51:21 tg Exp $
.\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $ .\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $
.\"- .\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
@ -5454,16 +5454,20 @@ Note that editing command names are used only with the
command. command.
Furthermore, many editing commands are useful only on terminals with Furthermore, many editing commands are useful only on terminals with
a visible cursor. a visible cursor.
The default bindings were chosen to resemble corresponding
Emacs key bindings.
The user's The user's
.Xr tty 4 .Xr tty 4
characters (e.g.\& characters (e.g.\&
.Dv ERASE ) .Dv ERASE )
are bound to are bound to
reasonable substitutes and override the default bindings. reasonable substitutes and override the default bindings;
their customary values are shown in parentheses below.
The default bindings were chosen to resemble corresponding
Emacs key bindings:
.Bl -tag -width Ds .Bl -tag -width Ds
.It abort: \*(haC, \*(haG .It Xo abort:
.No INTR Pq \*(haC ,
.No \*(haG
.Xc
Abort the current command, empty the line buffer and Abort the current command, empty the line buffer and
set the exit state to interrupted. set the exit state to interrupted.
.It auto\-insert: Op Ar n .It auto\-insert: Op Ar n
@ -5537,7 +5541,8 @@ command above.
Note that \*(haI is usually generated by the TAB (tabulator) key. Note that \*(haI is usually generated by the TAB (tabulator) key.
.It Xo delete\-char\-backward: .It Xo delete\-char\-backward:
.Op Ar n .Op Ar n
.No ERASE , \*(ha? , \*(haH .No ERASE Pq \*(haH ,
.No \*(ha? , \*(haH
.Xc .Xc
Deletes Deletes
.Ar n .Ar n
@ -5551,7 +5556,9 @@ Deletes
characters after the cursor. characters after the cursor.
.It Xo delete\-word\-backward: .It Xo delete\-word\-backward:
.Op Ar n .Op Ar n
.No WERASE , \*(ha[\*(ha? , \*(ha[\*(haH , \*(ha[h .No Pfx1+ERASE Pq \*(ha[\*(haH ,
.No WERASE Pq \*(haW ,
.No \*(ha[\*(ha? , \*(ha[\*(haH , \*(ha[h
.Xc .Xc
Deletes Deletes
.Ar n .Ar n
@ -5601,14 +5608,14 @@ Moves to the end of the history.
Moves the cursor to the end of the input line. Moves the cursor to the end of the input line.
.It eot: \*(ha_ .It eot: \*(ha_
Acts as an end-of-file; this is useful because edit-mode input disables Acts as an end-of-file; this is useful because edit-mode input disables
normal terminal input canonicalization. normal terminal input canonicalisation.
.It Xo eot\-or\-delete: .It Xo eot\-or\-delete:
.Op Ar n .Op Ar n
.No \*(haD .No EOF Pq \*(haD
.Xc .Xc
Acts as If alone on a line, same as
.Ic eot .Ic eot ,
if alone on a line; otherwise acts as otherwise,
.Ic delete\-char\-forward . .Ic delete\-char\-forward .
.It error: (not bound) .It error: (not bound)
Error (ring the bell). Error (ring the bell).
@ -5640,7 +5647,9 @@ word.
.Xc .Xc
Goes to history number Goes to history number
.Ar n . .Ar n .
.It kill\-line: KILL .It Xo kill\-line:
.No KILL Pq \*(haU
.Xc
Deletes the entire input line. Deletes the entire input line.
.It kill\-region: \*(haW .It kill\-region: \*(haW
Deletes the input between the cursor and the mark. Deletes the input between the cursor and the mark.
@ -5678,12 +5687,14 @@ This is only useful after an
.Ic search\-history .Ic search\-history
or or
.Ic search\-history\-up . .Ic search\-history\-up .
.It no\-op: QUIT .It Xo no\-op:
.No QUIT Pq \*(ha\e
.Xc
This does nothing. This does nothing.
.It prefix\-1: \*(ha[ .It prefix\-1: \*(ha[
Introduces a 2-character command sequence. Introduces a 2-character command sequence.
.It prefix\-2: \*(haX , \*(ha[[ , \*(ha[O .It prefix\-2: \*(haX , \*(ha[[ , \*(ha[O
Introduces a 2-character command sequence. Introduces a multi-character command sequence.
.It Xo prev\-hist\-word: .It Xo prev\-hist\-word:
.Op Ar n .Op Ar n
.No \*(ha[. , \*(ha[_ .No \*(ha[. , \*(ha[_