Constellation/console-colors.c — pull request #3 by silentbicycle (2014-10-12 23:24:28+00:00)
Title: Attempt to check whether output stream is a TTY before using escapes

This doesn't check full termcap attributes, but it checks with isatty(3).

Also, this follows the current #ifdef _WIN32 #else assume Unix #endif
pattern; this will need to be changed if more platforms are added.