home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mdcbbs!apphpp10!abercrombie
- Newsgroups: comp.unix.shell
- Subject: Re: HELP: Command-line editing with ksh/csh
- Message-ID: <ABERCROMBIE.92Sep11102002@apphpp10.mdcbbs.com>
- From: abercrombie@mdcbbs.com (Phil Abercrombie)
- Date: 11 Sep 92 10:12:30 PDT
- Reply-To: abercrombie@mdcbbs.com
- References: <Bton03.99n@agora.rain.com> <BuDGzq.5pA@unx.sas.com>
- Organization: M&E (Division of EDS), Cypress CA
- Nntp-Posting-Host: 134.244.17.169
- In-reply-to: sasmob@chewy.unx.sas.com's message of Thu, 10 Sep 1992 17:09:25 GMT
- Lines: 34
-
-
- On Thu, 10 Sep 1992 17:09:25 GMT, sasmob@chewy.unx.sas.com (Mark C. Burhans) said:
- *> 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
- *> ^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 emacs mode (and recent revisions of ksh), you can set shell
- aliases to interpret the escape codes generated by your arrow keys.
-
- alias __A="" # recall previous line
- alias __B="" # goto next line
- alias __D="" # go back in a line
- alias __C="" # go forward in a line
-
- (I can't find this in my FM though...)
- --
- Phil Abercrombie | Living in another country | _~o _O | BIKE TO
- abercrombie@mdcbbs.com | Under another name | -\<,-\<, | WORK
- | | (*)/===/(*) |
-