I just noticed that I couldn't use emacs from within screen at work. Whenever I pressed control-H to open a help screen, emacs would delete a character. This is not the normal operation. It turns out that both my terminfo and
Here's how I fixed stuff so delete means \e[3~, backspace means ^? and ^H means ^H. The output of "tput kbs | od" was 010 (^H in octal), not 177 (^? in octal). To correct this, I altered my terminfo database.
Translate the local termcap info into terminfo source with captoinfo (or alegedly, "tic -I").
captoinfo -e screen > ~/.terminfo/s/screen.ti
Edit the file so the kbs entry refers to ^? instead of ^H. Compile it with tic and you should have a new ~/.terminfo/s/screen. Terminfo applications seem to just use the file automatically so there's no additional configuration needed.
I had to also unbreak my
This line is an empty definition for the kb termcap entry and it unsets the badness.
bindkey -d -k kb