Re: Fixing shell 'unknown terminal "emacs"'

Glynn Clements <[email protected]> Sat, 2 Apr 2005 14:28:36 +0100
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
tbagg@[216.250.183.124] wrote:

> 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).

Are you referring to "M-x term" or "M-x shell"? The "eterm" entry
describes the former (it includes cursor positioning etc), which sets
TERM to "eterm". shell-mode (which sets TERM to "emacs") implements a
dumb terminal, so the "emacs" entry should look something like:

emacs|80-column dumb tty, 
	am, 
	cols#80, 
	cud1=^J, ind=^J, 

IOW, like "dumb", only more so: "dumb" includes "bel=^G" and "cr=^M",
neither of which work in shell-mode.

-- 
Glynn Clements <[email protected]>