On Mon, Apr 13, 2009 at 11:45:33PM -0400, Matt Zyzik wrote: > > > PS1='[\[\033[01;32m\]\u \[\033[01;31m\]- \[\033[01;34m\]\w\[\033[00m\]]$ '
> First, set your PS1 to the > above. It should result in a colored prompt. Second, type "asdf" so many > times that it goes passed the width of the terminal and the words begin > to appear on the next line. (Open xterm at its default width to do > this.) At that point, keep hitting either Alt-Bksp or Ctrl-W until you > see bash not refreshing properly. Confirmed in 4.0.10 under rxvt on HP-UX. (Typing "asdf " with a space, so that Ctrl-W doesn't clobber the whole line.)