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