bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bugs with colored-stats


From: Chet Ramey
Subject: Re: possible bugs with colored-stats
Date: Thu, 29 Oct 2020 10:30:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]