eterm-color: Unknown terminal type

后端 未结 1 2009
误落风尘
误落风尘 2020-12-29 13:40

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-c         


        
相关标签:
1条回答
  • 2020-12-29 14:26

    It does seem that you've seen the following information already, so it might not help, but it's probably worth reiterating.

    The Emacs Wiki explains that you should copy (or symlink) the eterm-color and eterm-color.ti files from the /usr/share/emacs/xx.x/etc/e directory on your local system to the ~/.terminfo/e/ directory (or alternatively, system-wide at /usr/share/terminfo/e/).

    Of course you can also do likewise on any remote host you need to connect to.

    On Debian-based systems you administer, you can apt-get install ncurses-term, which includes /usr/share/terminfo/e/eterm-color.

    With regard to the details in the question, note that if you didn't already have a ~/.terminfo directory then cp -r /usr/share/emacs/21.4/etc/e ~/.terminfo would not do what you intended it to do. It's not clear whether or not that was the case, but it may explain why it didn't work? You need the eterm-color files under a ~/.terminfo/e/ directory; not directly in ~/.terminfo/.

    (n.b. Personally I always just install ncurses-term, so I can't vouch directly for the ~/.terminfo approach.)

    0 讨论(0)
提交回复
热议问题