[CMake] ansi color

Michael Hertling mhertling at online.de
Fri Feb 10 10:56:18 EST 2012


On 02/10/2012 09:15 AM, Matt Fair wrote:
> I'd like to be able to pipe cmake output and still have the ansi color
> codes when the output is not TTY, is there a way to do this?
> Thanks,
> Matt

You might do this by yourself using sed/awk/perl/... and the ANSI CSIs;
refer to [1] for a similar example. Instead of multiple "-e" command
line sed expressions, it is probably more convenient to use a sed
script with one line per color as last part of your pipe.

Regards,

Michael

[1] http://www.mail-archive.com/cmake@cmake.org/msg40328.html


More information about the CMake mailing list