Skip to content

Support the NO_COLOR env variable in the REPL#556

Merged
saghul merged 1 commit intomasterfrom
no-color
Sep 27, 2024
Merged

Support the NO_COLOR env variable in the REPL#556
saghul merged 1 commit intomasterfrom
no-color

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Sep 27, 2024

No description provided.

@saghul saghul requested a review from bnoordhuis September 27, 2024 15:04
}
}
s = std.getenv("NO_COLOR"); // https://no-color.org/
if (s && +s[0] !== 0) {
Copy link
Copy Markdown
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
Copy Markdown
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
@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

2 participants