Don't emit ANSI colour escape sequences when output is not a tty
When piping the output of utest.h into a file or pipe the default
behaviour should be to omit colour formatting as these output devices
are non-interactive and colour output confounds parsing.

In a future patch I'd like to add support to make this optional a'la

git diff --color=<auto|always|never> or gcc's
`-fdiagnostics-color=<auto|always|never>`

However, this should be sufficient for now.
1 parent a17bad2 commit 21966a44d3994f46f1343dafb0b8b919b230b409
@Luke Drummond Luke Drummond authored on 19 Nov 2017
Showing 1 changed file
View
utest.h