art's abode

art.csoft.net

Getting BSD, Home, End, Putty, and screen to play nice

without comments

… you can try putting shit into your /etc/inputrc (or ~/.inputrc):

"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word

You will have to re-login to your terminal session for these changes to take effect. But that may not fix anything in screen, until you change the $TERM in your screen session:

bash-3.2$ cat ~/.screenrc
term linux

… which means you have to restart your screen session for the changes to take effect. "term vt220" is also a good choice, but if you tend to use syntax highlighting with vim, for instance, or any other high-tech features of your system, it may look ugly-underliney.

Written by art

December 7th, 2007 at 12:26 am

Leave a Reply