aboutsummaryrefslogtreecommitdiff
path: root/src/rc-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc-status.c')
-rw-r--r--src/rc-status.c4
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);
}