Color not represented inside macOS terminal
jpstijn opened this issue · 2 comments
jpstijn commented
Qix- commented
The MacOS terminal doesn't support Truecolor (16-million RGB support, which is what .hex()
requires). You need to use an Ansi256 color with .ansi256(code)
instead, or install color-convert
and do const yellow = chalk.ansi256(colorConvert.hex.ansi256('#FFD833'))
(this used to be built-in functionality but we removed it due to it being bulky and atypical usage).
Hope that helps!
jpstijn commented
Sorry my mistake! Thanks for your reply.