Fancy prompt triggers update problem
@otaylor
Submitted by Owen Taylor Assigned to Behdad Esfahbod @behdad
Link to original bug (#346554)
Description
If I set the bash prompt as follows:
export PS1="[\033]0;X\007\033[33m]Y[\033[m]$ "
Then two problems can be seen (they may be the same)
- As you type, the cursor continually flashes back to the beginning of the line
- If you paste (with the middle button, say) into the terminal, characters are inserted very slowly ... the terminal seems to be updated after each character.
To explain the prompt above:
[ : Begin non-printing section 033]0;X\007: Set the terminal title to 'X' \033[33m: Set the color to orange (or some color, depends on config) ]: End non-printing section Y: Some text for the prompt [: Begin another non-printing section \033[m: Reset back to the default color $ : More text for the prompt
Most of these elements seem necessary to trigger the problem; I couldn't simplify it more than the above.
Version: 0.12.x
Resolution: RESOLVED FIXED