problem with terminal capabilities when using terminal from within emacs

Joseph Mingrone jrm at
Mon Jan 9 20:36:32 UTC 2012

On Sun, Jan 8, 2012 at 13:50, Joseph Mingrone <jrm at> wrote:
> From within emacs, if I invoke a new multi-term buffer with C-c c, the
> TERM environment variable is set to eterm-color and a TERMCAP variable
> is also set and
> everything works fine.  However, if I ssh to a remote host from within
> this buffer, only the TERM variable remains set and the keybindings
> don't work.  If I manually set the TERMCAP variable nothing changes.
> Is there  a way to ssh to a remote host from within a multi-term
> buffer and have the terminal capabilities work out?
> I'm running emacs 23.3 on 8-STABLE.

I think I have a solution for anyone running into the same problem.
Any comments or suggestions are welcome.

Add the entry for eterm-color (copied below) to /usr/share/misc/termcap.
# cd /usr/share/misc && mv /usr/share/misc/termcap.db
# cap_mkdb termcap

# Termcap entry for eterm-color
eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96:\

Public key:

More information about the freebsd-questions mailing list