Skip to content

No colors when running via systemd (no tty) #82

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

Open
katywings opened this issue Apr 6, 2025 · 2 comments
Open

No colors when running via systemd (no tty) #82

katywings opened this issue Apr 6, 2025 · 2 comments

Comments

@katywings
Copy link

katywings commented Apr 6, 2025

If I run my node server via a systemd service, this breaks the image-to-ascii colors. Using environment variables such as FORCE_COLOR=3 has no effect.

Is this not supported at all or do you know how to make your library work in a non tty environment 🙈?

@katywings
Copy link
Author

I figured out why FORCE_COLOR=3 isn't working 😅: One of your other packages ansy uses a very old version of supports-color which doesn't have the FORCE_COLOR checks 🙈. Those checks were introduced with supports-color >= 6 (https://github.com/chalk/supports-color/releases/tag/v6.0.0).

https://github.com/IonicaBizau/ansy/blob/fd942e0fd3829367611d3f7e1fbc64c5b4cb8a32/package.json#L31

@IonicaBizau
Copy link
Owner

Any contributions for this would be very much appreciated! Thank you very much!

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