From 382dd00c6837cacb85c12add64446c7032432a6d Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 18 Mar 2013 11:10:53 +0000 Subject: 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@ --- bin/ksh/ksh.1 | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'bin/ksh/ksh.1') 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 ^[. , ^[_ -- cgit v1.2.3