Align correctly when passing output to grep.

This commit is contained in:
Roy Marples 2007-10-03 12:45:57 +00:00
parent 76d3ee58e1
commit 034a18c548

View File

@ -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);
}