diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-03-18 11:10:53 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-03-18 11:10:53 +0000 |
commit | 382dd00c6837cacb85c12add64446c7032432a6d (patch) | |
tree | c2ad5504454db626adf9f51b6d104512d91be63d /bin/ksh/ksh.1 | |
parent | 7ea431a6d279b97aa3c9ec6c639fc6e50224dc17 (diff) |
Keep documentation in sync with reality and update binding examples.
This should have been part of the keybinding rewrote when support for
multi-character sequences has been added. Pointed out by mikeb@
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r-- | bin/ksh/ksh.1 | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1 index 6f6bd7b8c77..645c9a5d52c 100644 --- a/bin/ksh/ksh.1 +++ b/bin/ksh/ksh.1 @@ -1,8 +1,8 @@ -.\" $OpenBSD: ksh.1,v 1.145 2013/01/17 21:20:25 jmc Exp $ +.\" $OpenBSD: ksh.1,v 1.146 2013/03/18 11:10:52 mpi Exp $ .\" .\" Public Domain .\" -.Dd $Mdocdate: January 17 2013 $ +.Dd $Mdocdate: March 18 2013 $ .Dt KSH 1 .Os .Sh NAME @@ -2884,11 +2884,10 @@ The following default bindings show how the arrow keys on an ANSI terminal or xterm are bound (of course some escape sequences won't work out quite this nicely): .Bd -literal -offset indent -bind '^[['=prefix-2 -bind '^XA'=up-history -bind '^XB'=down-history -bind '^XC'=forward-char -bind '^XD'=backward-char +bind '^[[A'=up-history +bind '^[[B'=down-history +bind '^[[C'=forward-char +bind '^[[D'=backward-char .Ed .Pp .It Ic break Op Ar level @@ -4923,10 +4922,6 @@ or .Ic search-history . .It no-op: QUIT This does nothing. -.It prefix-1: ^[ -Introduces a 2-character command sequence. -.It prefix-2: ^X , ^[[ , ^[O -Introduces a 2-character command sequence. .It Xo prev-hist-word: .Op Ar n .No ^[. , ^[_ |