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

fix: do not color health summary when stdout is piped #2836

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

lazytanuki
Copy link
Contributor

Closes #2833

The is-terminal crate seems to be more active than the atty crate. A crate should be necessary for cross platform compatibility (it's a bit messier to check if stdout is piped on Windows than on Linux).

helix-term/Cargo.toml Outdated Show resolved Hide resolved
@archseer archseer merged commit 55f4f69 into helix-editor:master Jun 20, 2022
lazytanuki added a commit to lazytanuki/helix that referenced this pull request Jun 21, 2022
)

* fix: do not color health summary when stdout is piped

* fix: use crossterm instead of is-terminal
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.

Health uses colors even when not outputting to tty
3 participants