AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Force delete key to work in aix ksh ?

    Posted Sun September 09, 2007 04:20 PM

    Originally posted by: Vilius


    I'm using AIX console over putty.
    I'm not very happy with default ksh command editing capabilities so I forced insert mode, arrow keys and command history by issuing:

    set -o emacs
    alias __D=`echo "\002"`
    alias __C=`echo "\006"`

    in emacs mode history works using ctrl+p, so only thing missing is del key-
    How to force del key to work as it should ?

    thanks
    Vilius
    #AIX-Forum


  • 2.  Re: Force delete key to work in aix ksh ?

    Posted Mon September 10, 2007 10:22 AM

    Originally posted by: SystemAdmin


    > I'm using AIX console over putty.
    > I'm not very happy with default ksh command editing
    > capabilities so I forced insert mode, arrow keys and
    > command history by issuing:
    >
    > set -o emacs
    > alias __D=`echo "\002"`
    > alias __C=`echo "\006"`
    >
    > in emacs mode history works using ctrl+p, so only
    > thing missing is del key-
    > How to force del key to work as it should ?

    What behavior do you expect for the del key?

    I was unfamiliar with use of "alias __CD" to
    map <esc>[<char> .
    I was aware that vt52 left arrow keys sent <esc>[D,
    right arrow key sent <esc>[C .

    <HINT>
    vt52(?) del key sends <esc>3<tilde> .
    Is there a similar alias idiom to map
    <esc>3<tilde> ?
    </HINT>

    Hopefully helpful,
    #AIX-Forum


  • 3.  Re: Force delete key to work in aix ksh ?

    Posted Mon September 10, 2007 06:05 PM

    Originally posted by: SystemAdmin


    This is pretty much a shot in the dark, but if the delete key does not work even before you issue the "set -o emacs" command then you may need to set the erase mode for the tty:
    stty erase <delete>
    #AIX-Forum