improve description of default Emacs mode keybindings
This commit is contained in:
parent
58f36a9f3a
commit
8a93f7d1dd
41
mksh.1
41
mksh.1
@ -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 $
|
||||
.\"-
|
||||
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
||||
@ -5454,16 +5454,20 @@ Note that editing command names are used only with the
|
||||
command.
|
||||
Furthermore, many editing commands are useful only on terminals with
|
||||
a visible cursor.
|
||||
The default bindings were chosen to resemble corresponding
|
||||
Emacs key bindings.
|
||||
The user's
|
||||
.Xr tty 4
|
||||
characters (e.g.\&
|
||||
.Dv ERASE )
|
||||
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
|
||||
.It abort: \*(haC, \*(haG
|
||||
.It Xo abort:
|
||||
.No INTR Pq \*(haC ,
|
||||
.No \*(haG
|
||||
.Xc
|
||||
Abort the current command, empty the line buffer and
|
||||
set the exit state to interrupted.
|
||||
.It auto\-insert: Op Ar n
|
||||
@ -5537,7 +5541,8 @@ command above.
|
||||
Note that \*(haI is usually generated by the TAB (tabulator) key.
|
||||
.It Xo delete\-char\-backward:
|
||||
.Op Ar n
|
||||
.No ERASE , \*(ha? , \*(haH
|
||||
.No ERASE Pq \*(haH ,
|
||||
.No \*(ha? , \*(haH
|
||||
.Xc
|
||||
Deletes
|
||||
.Ar n
|
||||
@ -5551,7 +5556,9 @@ Deletes
|
||||
characters after the cursor.
|
||||
.It Xo delete\-word\-backward:
|
||||
.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
|
||||
Deletes
|
||||
.Ar n
|
||||
@ -5601,14 +5608,14 @@ Moves to the end of the history.
|
||||
Moves the cursor to the end of the input line.
|
||||
.It eot: \*(ha_
|
||||
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:
|
||||
.Op Ar n
|
||||
.No \*(haD
|
||||
.No EOF Pq \*(haD
|
||||
.Xc
|
||||
Acts as
|
||||
.Ic eot
|
||||
if alone on a line; otherwise acts as
|
||||
If alone on a line, same as
|
||||
.Ic eot ,
|
||||
otherwise,
|
||||
.Ic delete\-char\-forward .
|
||||
.It error: (not bound)
|
||||
Error (ring the bell).
|
||||
@ -5640,7 +5647,9 @@ word.
|
||||
.Xc
|
||||
Goes to history number
|
||||
.Ar n .
|
||||
.It kill\-line: KILL
|
||||
.It Xo kill\-line:
|
||||
.No KILL Pq \*(haU
|
||||
.Xc
|
||||
Deletes the entire input line.
|
||||
.It kill\-region: \*(haW
|
||||
Deletes the input between the cursor and the mark.
|
||||
@ -5678,12 +5687,14 @@ This is only useful after an
|
||||
.Ic search\-history
|
||||
or
|
||||
.Ic search\-history\-up .
|
||||
.It no\-op: QUIT
|
||||
.It Xo no\-op:
|
||||
.No QUIT Pq \*(ha\e
|
||||
.Xc
|
||||
This does nothing.
|
||||
.It prefix\-1: \*(ha[
|
||||
Introduces a 2-character command sequence.
|
||||
.It prefix\-2: \*(haX , \*(ha[[ , \*(ha[O
|
||||
Introduces a 2-character command sequence.
|
||||
Introduces a multi-character command sequence.
|
||||
.It Xo prev\-hist\-word:
|
||||
.Op Ar n
|
||||
.No \*(ha[. , \*(ha[_
|
||||
|
Loading…
x
Reference in New Issue
Block a user