When PS1 contains line break and it sets color with ansi escape code
before the line break,
then in any terminal emulator after zoom out or in, the color of the
second line disappears.
The color is also missing terminal is opened.
Repeat-By:
PS1=\[\033[31m\]first line\nsecond line\[\033[0m\]
zoom in or out and observe disappearing color.
Compare to this which does not have the same problem due setting
color again after the linebreak: