When I use SSH to login to a Ubuntu 12.04 machine from an ansi-term session in emacs the prompt displays incorrectly:
0;ubuntu@jumplin: ~ubuntu@jumplin:~$
This should look like the following:
ubuntu@jumplin:~$
I've tried a few of the suggestions in relation to utf-8 and colour support however they don't seem to be working (colour currently works fine in ansi-term):
Strange characters in ansi-term in emacs
I think it might have something to do with a unsupported ansi escape code or something like that, but I'm not really sure - the value of PS1 for this terminal session is:
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
Any advice would be much appreciated :) I always seem to get a bit lost when strange characters show up in terminal sessions.