<div class="gmail_quote">On Sat, Oct 17, 2009 at 18:16, Todd Zullinger <span dir="ltr"><<a href="mailto:tmz@pobox.com">tmz@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div class="h5">Donald Russell wrote:<br>
> On Sat, Oct 17, 2009 at 11:36, Petrus de Calguarium <<a href="mailto:kwhiskerz@gmail.com">kwhiskerz@gmail.com</a>> wrote:<br>
>> Donald Russell wrote:<br>
>><br>
>>> Any ideas/suggestions?<br>
>><br>
>> None, except to report the bug.<br>
>><br>
>> I have noticed this problem on and off for years and it doesn't<br>
>> have anything to do with the PS1 prompt. Try entering nothing on<br>
>> the command line, then use the up and down arrows, and eventually<br>
>> your prompt will pick up some stuff from a previous command,<br>
>> although, if you press the backspace, you will see that the input<br>
>> mark is as far left as it can go.<br>
><br>
> OK, thanks... I really only noticed this after putting newlines etc in<br>
> my PS1 prompt, or at least it got more bothersome then.<br>
><br>
> I'll file a bug against bash...<br>
<br>
</div></div>I don't think this is a bug.  Rather, I think the problem is caused by<br>
not escaping the color codes you have embedded in your prompt.  Try<br>
this instead:<br>
<br>
export PS1="\n\[\033[0;35m\][\u@\h] ${PWD}\n$\[\033[0m\]"<br>
<br>
The \[ and \] begin and end a series of non-printable characters.<br>
This tells bash not to count those characters when determining the<br>
length of the prompt.  So the color escape sequences are wrapped in \[<br>
and \].<br>
<font color="#888888"></font><br></blockquote><div><br>That makes sense since this problem really only started showing up regularly when I changed my PS1 prompt to use color.<br><br>Thank you. :-) <br></div></div>