My prompt is working fine withing a normal bash terminal, but it appears broken (or it shows broken) in an ansi-term emacs bash terminal.
This is my PS1:
\[\e[00;31m\]\u\[\e[00;33m\]@\h\[\e[00;32m\] \W\[\e[1;34m\] $\[\e[0m\]
And it looks like this in a normal bash:
And this is how it looks in emacs ansi-term (bash):
I have already checked that default-process-coding-system
variable is (utf-8-unix . utf-8-unix)
I think I need to escape something in my prompt, but I can't figure out what.
EDIT:
I have tried to simplify it, by executing export PS1='a'
and I still have that garbage (0;mbax2ct2@kilburn:~/directory
) in front of the prompt. any more ideas?
I am actually logged into that machine through ssh; would it be possible that this actually does something else with the PS1 after I set it?