On 10/29/20 6:38 AM, Arnaud wrote: > Le 29.10.20 à 06:54, Clark Wang a écrit : >> >> I can reproduce the similar issue with my bash 4.4.12 and PS0="\[\e[0m\]" >> fix it for me. >> >> -clark >> > > I had to change at one point the PS0="\[\e[0m\] to PS0="\[\e[38;5;15m\].
Except for this changing the default color to light grey, which I have trouble seeing, everything looks fine. I'm testing on macOS Terminal. If you want to look further, my guess is that the terminal is still using the PS1 color when it prints the colored possible completions, and reverting to the "normal" color after printing each possible completion messes up the terminal's idea of the current color somehow. Either way, the functions you want to look at are colored_stat_start colored_stat_end which are called when the completion code prints colored possible completions. Chet -- ``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/