]> granicus.if.org Git - sysstat/commit
Disable color output if stdout is not a terminal
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 13 Sep 2015 08:57:51 +0000 (10:57 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 13 Sep 2015 08:57:51 +0000 (10:57 +0200)
commit38ad1c5824130a4189ca187f759c67d43ace820c
treee99dc219462e268032b94d68c87de4ab0130834c
parent4aa120a5a314cac7860fe8f0fb802bf62a138a21
Disable color output if stdout is not a terminal

Don't color output if it's redirected to a pipe or a file.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
common.c