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