Skip to content
Permalink
Browse files

added support for the NO_COLOR env variable

  • Loading branch information...
mortie committed Jan 24, 2018
1 parent c41d869 commit aadbbd375e03ec6000e23d817d2bd722b417296f
Showing with 2 additions and 0 deletions.
  1. +2 −0 snow/snow.h
@@ -325,6 +325,8 @@ static int __attribute__((unused)) _snow_assertneq_str(
int main(int argc, char **argv) { \
if (!isatty(1)) \
_snow_opt_color = 0; \
else if (getenv("NO_COLOR") != NULL) \
_snow_opt_color = 0; \
for (int i = 1; i < argc; ++i) { \
if (strcmp(argv[i], "--color") == 0) \
_snow_opt_color = 1; \

0 comments on commit aadbbd3

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.