diff options
author | Roy Marples <roy@marples.name> | 2007-12-06 10:48:00 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-06 10:48:00 +0000 |
commit | a178d532020aa159b27fa0fa5e9bb7490c5c35e6 (patch) | |
tree | 208bbdd2c47dd04fbd08ef4a15e6298fb19531d1 /src/rc-status.c | |
parent | a31c7cc61e4ef7e03e9d2986e09bb849de2c292f (diff) |
Move RC_ to EINFO_ for all env vars related to einfo.
Diffstat (limited to 'src/rc-status.c')
-rw-r--r-- | src/rc-status.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rc-status.c b/src/rc-status.c index 3958b71a..50d05edc 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -82,7 +82,9 @@ static void print_service (char *service) } else snprintf (status, sizeof (status), " stopped "); - if (isatty (fileno (stdout)) && ! rc_yesno (getenv ("RC_NOCOLOR"))) + errno = 0; + if ((rc_yesno (getenv ("EINFO_COLOR")) || errno == ENOENT) && + isatty (fileno (stdout))) printf ("\n"); ebracket (cols, color, status); } |