home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aix / 12826 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.8 KB

  1. Xref: sparky comp.unix.aix:12826 comp.unix.questions:14937
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!olivea!charnel!csusac!cdsac!scotte
  3. From: scotte@cdsac.uucp (L. Scott Emmons)
  4. Newsgroups: comp.unix.aix,comp.unix.questions
  5. Subject: Re: AIX, ksh, and <esc> sequence line editing
  6. Message-ID: <Dec23.171240.29184@cdsac.uucp>
  7. Date: 23 Dec 92 17:12:40 GMT
  8. References: <1992Dec22.153435.1@uwovax.uwo.ca>
  9. Organization: CableData (U.S. Computer Services), Sacramento, CA
  10. Lines: 33
  11. NntpPostingHost: cdsac
  12.  
  13. In article <1992Dec22.153435.1@uwovax.uwo.ca> brent@uwovax.uwo.ca (Brent Sterner) writes:
  14. >   Hi there.  I'm a beginner at managing an aix system, using ksh as my
  15. >base for learning this platform.  Other systems I have access to (including
  16. >several unix (tcshbased) systems and VMS) provide a mode of line editing
  17. >in which certain escape sequences map into command recall or cursor movement
  18. >within a recalled command line.  ksh doesn't seem to let me do this, from
  19. >what I've located in the manuals.  (Have I missed something?)
  20.  
  21. The ksh has an undocumented way of binding the arrowkeys to the emacs
  22. line editing commands. In your ".kshrc", add:
  23.  
  24. alias __A=^P
  25. alias __B=^N
  26. alias __C=^F
  27. alias __D=^B
  28. alias __H=^A
  29.  
  30. Note that "^P" (et al) must be the actual control sequence...
  31.  
  32. Also, you MUST have a PTF for this to work in AIX 3.2. The APAR # for
  33. the problem is IX25982, and is available on PTF U406855, which has
  34. probably since been superceeded. Just call IBM defect support and give
  35. them the APAR #; they will send you the latest PTF with that APAR
  36. fixed...
  37.  
  38. This is one of the areas that I really dislike about the ksh...The
  39. tcsh (and csh) are much better for interactive use. Perhaps someday
  40. tcsh and ksh will merge into a POSIX compliant ksh... Ah well...
  41.  
  42.                L. Scott Emmons
  43.               CableData  Research Center
  44.              csusac.csus.edu!cdsac!scotte
  45.                 KC6NFP
  46.