Disclaimer : All the postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions.
This post talks about one of the very useful “terminal backspace setting for AIX” connection.
While working on a putty(or any other telnet) connection to AIX, I have seen a lot of guys frustrated with the default behaviour on a “Backspace” key. Instead of deleting the character previous to the one cursor is positioned on; it generates “Ctrl ?” or “Ctrl H” control sequence on the telnet/ssh connection.
The workaround is to use “Shift+Backspace” key. This key combination works as intended i.e. deletes the character previous to the one pointed by cursor.
One other elegant workaround is to use the AIX stty command to assign a control character to the character string generated on pressing the “Backspace” key.
From the stty man page :
To assign a control character to a character string, type:
stty Control String
In our case we want to assign string “Ctrl ?” to the control parameter ‘erase’. So we have to use :
stty erase ‘^?’
Best thing is to add the above command into the .profile file of your AIX machine and let it take care to set it every time you open a new connection to the AIX box.