aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-03 12:45:57 +0000
committerRoy Marples <roy@marples.name>2007-10-03 12:45:57 +0000
commit034a18c54819532b309e631eb9dfafc9fc11966d (patch)
treecd416b38ae7e0cb3fde3b5fabd2d8072665a77a1 /src
parent76d3ee58e11e3355156c6c9887308bb4ad1649b1 (diff)
Align correctly when passing output to grep.
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);
}