home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!sasmob
- From: sasmob@chewy.unx.sas.com (Mark C. Burhans)
- Subject: Re: HELP: Command-line editing with ksh/csh
- Originator: sasmob@chewy.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BuDGzq.5pA@unx.sas.com>
- Date: Thu, 10 Sep 1992 17:09:25 GMT
- References: <Bton03.99n@agora.rain.com>
- Nntp-Posting-Host: chewy.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 38
-
-
- In article <Bton03.99n@agora.rain.com>, chuff@agora.rain.com (Chris Hufnagel) writes:
- |> Hi, I am running Amiga Unix v2.1 and unfortunatly, the included ksh/csh
- |> don't seem include command-line editing capabilities. When I use
- |> the cursor keys or an ESC(J,K) combination I only get "[[A, [[B, [[C, [[D)"
- |> etc. Am I forgetting to set something or is there a patch,utility that
- |> gives me back the sacred command-line editing abilityies?
-
- Don't know how to get the arrow keys to work as command recall...yet...
- but with ksh you can try:
- set -o emacs
- or
- set -o vi
-
-
- With 'set -o emacs':
- ^P Previous command
- ^N Next command
- ^B Back up a character
- ^F Move forward a charcer
- ^D Delete character
- ^K Erase from cursor to end of line
-
-
- With 'set -o vi':
- --First the ESC key must be pressed--
- k Previous command
- j Next command
- h Back up a character
- l Move forward a character
- x Delete character
- D Erase from cursor to end of line
- --
- ---Mark C. Burhans---sasmob@chewy.unx.sas.com---919/677-8001 ext 7324
- SAS Institute, Inc., USA, SAS Campus Drive, Cary, NC 27513.
- "If you want a resume, I'll put it in writing. It's only good for a day
- and the contents are frightening." -- Lyrics by Harry Connick, Jr.
-
-