colorize icon indicating copy to clipboard operation
colorize copied to clipboard

Text is white when blink is used

Open vanboom opened this issue 4 months ago • 1 comments

It seems the blink method is not selecting the primary color...

"TEST".red

"\e[1;31mTEST\e[0m"

31 correctly produces red text.

However...

"TEST".red.blink

"\e[5;39;49mTEST\e[0m" 5: Enables blinking text (if supported by the terminal). 39: Sets the text color to the default foreground color (usually white or light gray). 49: Sets the background color to the default background color (usually black).

The "red" foreground color is not applied...

Expected behavior:

"TEST".red.blink

"\e[5;31;49mTEST\e[0m"

i.e. 31 = red should be the selected foreground color.

Thank you!

vanboom avatar Aug 14 '25 16:08 vanboom

More investigation...interestingly, plain string fails while ColorizedString passes... I am using v1.1.0 in a ruby on rails 5.2.4.5 app...


> "TEST".red.blink
"\e[5;39;49mTEST\e[0m"
> ColorizedString["TEST"].red.blink
"\e[5;31;49mTEST\e[0m"

vanboom avatar Aug 14 '25 16:08 vanboom