summaryrefslogtreecommitdiff
path: root/bin/ksh/ksh.1
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2003-09-01 15:47:41 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2003-09-01 15:47:41 +0000
commit02de0a76104fd5d7d72eba532f459d3379e9603f (patch)
tree3e71879eb4f55ace7faef2b1dca1a399334a14e4 /bin/ksh/ksh.1
parent60ed2c841bf7d745690289837c45a85fdac0ce62 (diff)
In emacs editing mode, ksh by default interprets a set 8th bit as
meta prefix, i.e. all characters with the top bit set (>= 0x80) are taken as commands and cannot be entered literally. Introduce a new shell option, emacs-usemeta, that allows to toggle this behavior. The default is the traditional behavior; to enter 8-bit characters use "set +o emacs-usemeta". ok fgsch@, henning@
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r--bin/ksh/ksh.18
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index 7969f9e1a80..f497434e228 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1,v 1.55 2003/07/19 08:07:35 jmc Exp $
+.\" $OpenBSD: ksh.1,v 1.56 2003/09/01 15:47:40 naddy Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -3348,6 +3348,9 @@ Enable brace expansion (a.k.a., alternation).
.It Ic emacs
Enable BRL emacs-like command-line editing (interactive shells only); see
.Sx Emacs editing mode .
+.It Ic emacs-usemeta
+In emacs command-line editing, use the 8th bit as meta (^[) prefix.
+This is the default.
.It Ic gmacs
Enable gmacs-like command-line editing (interactive shells only).
Currently identical to emacs editing except that transpose (^T) acts slightly
@@ -4303,8 +4306,7 @@ When the
.Ic emacs
option is set, interactive input line editing is enabled.
Warning: This mode is
-slightly different from the emacs mode in the original Korn shell and the 8th
-bit is stripped in emacs mode.
+slightly different from the emacs mode in the original Korn shell.
In this mode, various editing commands
(typically bound to one or more control characters) cause immediate actions
without waiting for a newline.