home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8998 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.8 KB  |  45 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!usc!sdd.hp.com!mips!mips!munnari.oz.au!bruce.cs.monash.edu.au!monu6!hal!map
  3. From: map@hal.maths.monash.edu.au (Michael Page)
  4. Subject: Re: editing history 
  5. Message-ID: <1992Aug22.060825.27736@monu6.cc.monash.edu.au>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: Mathematics Department, Monash University, Australia
  8. References: <1992Aug21.191459.21287@aplcen.apl.jhu.edu>
  9. Date: Sat, 22 Aug 1992 06:08:25 GMT
  10. Lines: 33
  11.  
  12. jern@visual1.jhuapl.edu (Bob Jernigan) writes:
  13. >
  14. > In recent AIXTIPS, #92284, suggests key settings to use the command 
  15. > history/recall features of ksh with the grey key.  Anyone get this to 
  16. > work as written.  I get strange results.
  17. >
  18.  
  19. Actually there's a better way to do it which slipped through this group
  20. a couple of months back.  Unless you are totally wedded to "vi", use 
  21. "emacs" line editing mode and define the following in your .kshrc file
  22.  
  23.             set -o emacs
  24.             alias __A="^P"
  25.             alias __B="^N"
  26.             alias __D="^B"
  27.             alias __C="^F"
  28.             alias __H="^A"
  29.  
  30. Many thanks to Tim Fredrick of NCAR for pointing out this virtually
  31. undocumented method.  The gotcha is that it only works on AIX 3.1 as
  32. a bug was introduced in AIX 3.2, but apparently APAR ix25982 fixes this.
  33.  
  34. Unlike the method mentioned in AIXTIPS, this works on any ksh session,
  35. whether or not you're in aixterm.  The feature is pretty much hidden away 
  36. in the ksh documentation and in my version of 'info' has a typo, with one 
  37. of the underlines missing.
  38.  
  39.  
  40. --
  41. +------------------------------------------------------------------------------+
  42.  Michael Page, Maths Dept, Monash University, Clayton, Victoria, AUSTRALIA 3168
  43.   email: map@hal.maths.monash.edu.au phone: +61 3 565 4486 FAX: +61 3 565 4403
  44. +------------------------------------------------------------------------------+
  45.