AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 ?
To get the ^? part, you need to actually press your backspace key.
So literally type "stty erase <backspace>" and it will slap in the ^?
Then just press enter and you will have backspace.
unfortunately this does not appear to work in .profile startup. I know, annoying but I have already developed the habit of typing "stty erase <backspace>" when I first login to an AIX box via putty.
The other option is to use Exceed, which sets it all up nice and neat for you from the get-go.
thanks guys, but my problem was to get delete key working, not backspace - I managed backspace to work using putty keyboard settings as DukeSSD mentioned. I can live with that(backspace) but I wanted all the keys to work 'properly'.
OK, just fired up my old 5.3 test box and the CDE, tried with dtterm and xterm on the native keyboard and console.
The Del key produces some strange results both on the ksh command line and in vi but all seem to result in a beep from the system and in the session none relate to deleting the character at the cursor, so as mentioned above, I don't think AIX supports the Del key in any obvious or known format.
I've never used the delete key in all my years using AIX. Using vi mode in the shell, you just don't need it.
I did notice while trying to use it that it did produce odd results as DukeSSD suggested. For me it changed the case on the character it was on or made the entire current word uppercase.
In the PUTTY Terminal-Keyboard configuration:
- In the "Backspace Key" section, I selected "Control-H"
- In the "Home and End Keys" section, I selected "Standard"
- In the "Function Keys & Keypad" section, I selected "Xterm R6"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.