[cmake-developers] [RFCv2] ctest: color test summary output

Brad King brad.king at kitware.com
Wed Jul 2 09:24:42 EDT 2014


On 07/02/2014 08:13 AM, Ben Boeckel wrote:
> Colors should only be output if we're outputting to a TTY. Pipes or
> redirections should not be colored (they'll only confuse those who don't
> recognize the escape sequences). CMake also has color routines already,
> but I don't know off-hand how accessible they are from CTest code (i.e.,
> might be static functions).

Look for uses of "cmsysTerminal_cfprintf" as an example.
See its declaration in "Source/kwsys/Terminal.h.in" also.

-Brad




More information about the cmake-developers mailing list