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