Created attachment 593684 [details, diff]
Fix screen and eterm terminfos to use ^? for kbs. Patch courtesy of debian.
Debian carries a patch for ncurses which makes the terminfo files default to kbs=^? instead of kbs=^H.
With that patch, the BACKSPACE keys works correctly for emacs in screen, whereas without it BACKSPACE does the wrong thing.
(That is to say, if screen(1) is run on a debian box then emacs works fine therein, but if screen is run on a gentoo box then emacs fails to work.)
I’ve attached their patch as found in their ncurses_6.1+20190803-1.debian.tar.xz.
The patch references:
and makes the change for Eterm|Eterm-color and screen.
Screen is much more usable in gentoo with this change.