Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors not working in macOS terminal #16

Open
dllu opened this issue Dec 31, 2021 · 3 comments
Open

Colors not working in macOS terminal #16

dllu opened this issue Dec 31, 2021 · 3 comments

Comments

@dllu
Copy link

dllu commented Dec 31, 2021

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?

@Talinx
Copy link

Talinx commented Jan 1, 2022

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

@dllu
Copy link
Author

dllu commented Jan 11, 2022

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

@Talinx
Copy link

Talinx commented Jan 11, 2022

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants