Normally my PS1 in bash is set as the following:
Code:
[mrsnrub@my-test-site ~]$ echo $PS1
[\u@\h \W]\$
With this normal setting I can run very long commands, like the following:
Code:
[mrsnrub@my-test-site ~]$ echo "We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility,"
We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility,
However, if I change PS1 to yellow text, like so:
Code:
[mrsnrub@my-test-site ~]$ export PS1="\e[1,33m[\u@\h: \W]\$ \e[m"
...I can no longer run very long commands:
As soon as the screen reaches what should be a line break, the text doesn't break, and the cursor overwrites the beginning of the same line:
Code:
Tranquilmy-test-site ~]$ echo "We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic
Why does this happen when all I'm doing is changing the color of the prompt?