From owner-freebsd-questions Fri Dec 10 20:50:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 3A23B14F02 for ; Fri, 10 Dec 1999 20:50:18 -0800 (PST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id FAA06226 for freebsd-questions@freebsd.org; Sat, 11 Dec 1999 05:50:15 +0100 (CET) (envelope-from daemon@bigeye.rhein-neckar.de) Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id DAA63648 for freebsd-questions@freebsd.org; Sat, 11 Dec 1999 03:38:42 +0100 (CET) (envelope-from daemon) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: Korn Shell key mapping question Date: 11 Dec 1999 03:38:41 +0100 Message-ID: <82sdfh$1u2c$1@bigeye.rhein-neckar.de> References: To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG William Melanson wrote: > I grabbed and installed the official AT&T release of KornShell 93 > binaries yesterday. Did you use the port? (Not that the port adds much.) > In order for users to be able to use the arrow keys to remember last > commands typed must emacs be avaialble? ? Do you mean whether the shell must be in emacs mode (set -o emacs)? > # Enable arrow keys for emacs-style command-line editing > alias __A='^P' > alias __B='^N' > alias __C='^F' > alias __D='^B' > alias __H='^A' Apparently this old ksh88 feature isn't available in ksh93. ksh93 allows for quite extensive input remapping through the KEYBD trap and various .sh.ed* variables. However, this requires some programming. You might want to check www.kornshell.com for hints. And of course, there's the Bolsky/Korn book. -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message