Permalink
Browse files

Adopt the NO_COLOR standard

  • Loading branch information...
p-gen committed Feb 5, 2018
1 parent 26ab3b0 commit 70d3ee5a328230dff3b744b2f0ca7ef20ecb530e
Showing with 8 additions and 2 deletions.
  1. +8 −2 smenu.c
10 smenu.c
@@ -5510,9 +5510,15 @@ main(int argc, char * argv[])
/* Get some terminal capabilities */
/* """""""""""""""""""""""""""""" */
term.colors = tigetnum("colors");
if (term.colors < 0)
if (getenv("NO_COLOR") != NULL)
term.colors = 0;
else
{
term.colors = tigetnum("colors");
if (term.colors < 0)
term.colors = 0;
}
/* Set the default timeout to 0: no expiration */
/* """"""""""""""""""""""""""""""""""""""""""" */

0 comments on commit 70d3ee5

Please sign in to comment.