Bash Version: 5.2 Patch Level: 21 Release Status: releaseDescription: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.
The way prompting works is that readline prints the entire prompt string once, but only (potentially) reprints the last line of a multi-line prompt. That's the only line that will change due to input or redisplay; there's no reason to move up and reprint the rest. You can force readline to redisplay the entire prompt by using ^L (clear-screen), but that has obvious side effects. Think of the portion of a multi-line prompt before the final newline as a static string that will not affect the display of the last line. If you want colors in both portions, specify them separately. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature