When I use SSH to log in to Ubuntu 12.04 from an ansi-term session in emacs, the prompt is not displayed correctly:
0; ubuntu@jumplin : ~ubuntu@jumplin :~$
It should look like this:
ubuntu@jumplin :~$
I tried several suggestions regarding utf-8 and color support, but they don't seem to work (color currently works fine in ansi-term):
Strange characters in ansi-term in emacs
I think this may be due to an unsupported ansi exit code or something similar, but I'm not sure what the PS1 value for this terminal session is:
\[\e]0;\ u@ \h: \w\a\]${debian_chroot:+($debian_chroot)}\ u@ \h:\w\$
Any advice would be greatly appreciated :) I always seem a little lost when strange characters appear on terminal sessions.
source share