jp2a icon indicating copy to clipboard operation
jp2a copied to clipboard

Colors not working in macOS terminal

Open dllu opened this issue 3 years ago • 3 comments

On macOS terminal.app:

Screen Shot 2021-12-31 at 2 49 22 PM

Meanwhile on Linux, the exact same pup.txt works perfectly.

image

Any ideas why?

dllu avatar Dec 31 '21 22:12 dllu

Which version of jp2a are you using? The version on Homebrew is pretty old, better color support has been added in v1.0.9.

Talinx avatar Jan 01 '22 00:01 Talinx

Not sure, but version mismatch wouldn't explain why the same pup.txt would look fine on Linux but not in macOS.

https://gist.github.com/dllu/bb108d8365ffba191472635f4bc32c28

image

dllu avatar Jan 11 '22 23:01 dllu

According to https://github.com/termstandard/colors#not-supporting-truecolor Terminal.app does not support 24-bit truecolor, therefore pup.txt does not work. That's currently my best guess. Unfortunately I don't have a Mac so I can't debug this properly. (jp2a should automatically use ANSI color (4-bit) if truecolor is not supported.)

Talinx avatar Jan 11 '22 23:01 Talinx