On Fri, Mar 23, 2018 at 12:36:22AM +0200, Ilkka Virta wrote: > I get the same with '4.4.12(1)-release' too, but it doesn't seem related to > Bash or the prompt. I can get it with just a printf, the colored part just > needs to get wrapped by the end of line. > > printf "%100s $(tput setab 1)colored part$(tput sgr0) normal again\n" > > If the screen scrolls, the background color on the last character gets > copied to the next line.
Ahh. In that case, it's a bug (or undesired feature) of your terminal emulator, and you should address the bug reports in that direction.