24
10
When I try to colorize the bash
prompt like this:
export PS1="\e[0;31m[\u@\h \W]\$ \e[m "
it breaks the carriage return (instead of going to a new line when line is full, it starts in the same line and erases the input text).
If I remove the color sequence it works fine.
I use Ubuntu 11.10 and terminal (guake has the same bug too).
Strange. It works w/o any problem on RedHat 5 and Mac OS X – Matteo – 2011-12-12T20:08:26.440
possible duplicate of PS1 problem, cmd is looping
– user1686 – 2011-12-12T20:10:28.560