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

Query terminfo for color capabilities #129

Closed

Conversation

kalvdans
Copy link

Fixes #108

@LingMan
Copy link
Contributor

LingMan commented Jul 3, 2023

How about using supports-color instead of terminfo? It's what owo-colors already uses, is much smaller, and supports both the TERM and CLICOLOR env vars as well as others.

It depends on is-terminal, but from what I've read the plan is to depend on that anyway for now.

@kurtlawrence
Copy link
Collaborator

We are planning on dropping isterminal.
I am not if this adds value inside the colored crate, and instead would be suited in a util crate.

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

Successfully merging this pull request may close these issues.

ShouldColorize::from_env() does not look the TERM environment variable
4 participants