diff options
author | Roy Marples <roy@marples.name> | 2007-10-03 12:45:57 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-03 12:45:57 +0000 |
commit | 034a18c54819532b309e631eb9dfafc9fc11966d (patch) | |
tree | cd416b38ae7e0cb3fde3b5fabd2d8072665a77a1 | |
parent | 76d3ee58e11e3355156c6c9887308bb4ad1649b1 (diff) |
Align correctly when passing output to grep.
-rw-r--r-- | src/rc-status.c | 2 |
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); } |