colorize
colorize copied to clipboard
Text is white when blink is used
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!
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"