Fixing shell 'unknown terminal "emacs"'

tbagg@[216.250.183.124] Wed, 16 Mar 2005 01:39:59 -0600 (CST)
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
This happened to me most recently for Xemacs 21.4.12 under RH 9.
Problem is that Xemacs sets TERM="emacs" but the terminfo entry's name is eterm.
Fix is this:
infocmp eterm | sed 's/^eterm/eterm|emacs/' >/tmp/eterm.tic
tic /tmp/eterm.tic
(as root, natch).