home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3889 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!sasmob
  3. From: sasmob@chewy.unx.sas.com (Mark C. Burhans)
  4. Subject: Re: HELP: Command-line editing with ksh/csh
  5. Originator: sasmob@chewy.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BuDGzq.5pA@unx.sas.com>
  8. Date: Thu, 10 Sep 1992 17:09:25 GMT
  9. References:  <Bton03.99n@agora.rain.com>
  10. Nntp-Posting-Host: chewy.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 38
  13.  
  14.  
  15. In article <Bton03.99n@agora.rain.com>, chuff@agora.rain.com (Chris Hufnagel) writes:
  16. |> Hi, I am running Amiga Unix v2.1 and unfortunatly, the included ksh/csh
  17. |> don't seem include command-line editing capabilities.  When I use
  18. |> the cursor keys or an ESC(J,K) combination I only get "[[A, [[B, [[C, [[D)"
  19. |> etc.  Am I forgetting to set something or is there a patch,utility that
  20. |> gives me back the sacred command-line editing abilityies?
  21.  
  22. Don't know how to get the arrow keys to work as command recall...yet...
  23. but with ksh you can try:
  24. set -o emacs
  25.    or
  26. set -o vi
  27.  
  28.  
  29. With 'set -o emacs':
  30.    ^P   Previous command
  31.    ^N   Next command
  32.    ^B   Back up a character
  33.    ^F   Move forward a charcer
  34.    ^D   Delete character
  35.    ^K   Erase from cursor to end of line
  36.  
  37.  
  38. With 'set -o vi':
  39.  --First the ESC key must be pressed--
  40.     k   Previous command
  41.     j   Next command
  42.     h   Back up a character
  43.     l   Move forward a character
  44.     x   Delete character
  45.     D   Erase from cursor to end of line
  46. -- 
  47. ---Mark C. Burhans---sasmob@chewy.unx.sas.com---919/677-8001 ext 7324
  48. SAS Institute, Inc., USA, SAS Campus Drive, Cary, NC 27513.
  49. "If you want a resume, I'll put it in writing.  It's only good for a day
  50. and the contents are frightening."  -- Lyrics by Harry Connick, Jr.
  51.  
  52.