aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rc-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc-status.c b/src/rc-status.c
index 2d80d5dd..aa7ca30c 100644
--- a/src/rc-status.c
+++ b/src/rc-status.c
@@ -55,7 +55,7 @@ static void print_service (char *service)
} else
snprintf (status, sizeof (status), " stopped ");
- if (! rc_env_bool ("RC_NOCOLOR"))
+ if (isatty (fileno (stdout)) && ! rc_env_bool ("RC_NOCOLOR"))
printf ("\n");
ebracket (cols, color, status);
}