In an ansi-term
terminal in Emacs, when I ssh to a specific remote host, the terminal is not recognized properly, and I get the error:
'eterm-color': unknown terminal type.
I added export TERMINFO=~/.terminfo
to .bashrc
on the remote machine, and I have tried the following on the remote machine:
cp -r /usr/share/emacs/21.4/etc/e ~/.terminfo
Just in case, I also tried copying over my own local copy of /etc/e
(Emacs 24.3) to ~/.terminfo
on the remote machine.
Also, in case it matters, if I try infocmp
on the remote machine, I get:
>infocmp
infocmp: couldn't open terminfo file /usr/share/terminfo/e/eterm-color.
How can I fix this?
infocmp
on the local system, and thentic
on the remote host. Just changescreen-256color
byeterm-color
– Jointless