Skip to content

Support the NO_COLOR env variable in the REPL #556

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

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Support the NO_COLOR env variable in the REPL #556

merged 1 commit into from
Sep 27, 2024

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Sep 27, 2024

No description provided.

@saghul saghul requested a review from bnoordhuis September 27, 2024 15:04
@@ -1873,6 +1878,10 @@ import * as bjson from "bjson";
styles = themes.light;
}
}
s = std.getenv("NO_COLOR"); // https://no-color.org/
if (s && +s[0] !== 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to double-check: this evaluates to true for NO_COLOR= (empty string). Is that expected/desired?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the instructions sample implementation in C: http://no-color.org/

I'll see what others do though!

@saghul saghul merged commit d0df61d into master Sep 27, 2024
52 checks passed
@saghul saghul deleted the no-color branch September 27, 2024 17:53
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.

2 participants