On Sun, Jan 8, 2012 at 13:50, Joseph Mingrone <j...@ftfl.ca> 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 /usr/share/misc/termcap.db.bak # cap_mkdb termcap # Termcap entry for eterm-color eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96:\ :am:bs:mi:pt:xn:\ :Co#8:co#166:li#48:pa#64:\ :@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\ :DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:\ :UP=\E[%dA:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\ :cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:dc=\E[P:\ :dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:kD=^[[3~:\ :kN=\E[6~:kP=\E[5~:kb=^?:kd=\EOB:kh=\E[1~:kl=\EOD:\ :kr=\EOC:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mk=\E[8m:mr=\E[7m:\ :nd=\E[C:op=\E[39;49m:r1=\Ec:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\ :so=\E[7m:ta=^I:ue=\E[m:\ :up=\E[A:us=\E[4m: -- ---------------------------------------------------------------------- Public key: http://gly.ath.cx/pub_key.txt ---------------------------------------------------------------------- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"