iTerm2 text wrapping is broken with color in prompt
By delvarwo... on July 06, 2011 04:36 (imported from Google Code)
This is a pretty nasty issue:
If you put any kind of color code in your prompt, even the reset escape code:
[.bashrc]
RESET="\033[0;00m"
PS1="\n\u@\w "
Then line wrapping fails. See wrong_wrap_with_color.png. Notice that the cursor has wrapped onto the SAME LINE when typing.
If you don't put color codes in your prompt, aka right_wrap_no_color.png and you type past the end of the line, it wraps correctly. Notice that the cursor is on the NEXT line.
I am running:
iTerm Build 0.20.20110630
Mac OSX v10.6.8

