[CMake] cmake --build switches ANSI color escape codes off in MINGW bash

Massaro Alessio Alessio.Massaro at mediobanca.co.uk
Wed Mar 28 05:10:16 EDT 2012


Hi there

Strange thing with ANSI colors

Calling cmake --build from a script in a MINGW bash shell will output ANSI colours escape codes as follows

←[0m[ 12%] ←[32mBuilding CXX object basic/CMakeFiles/......

Piping the same script to /bin/less or calling the native make tool directly will render colours just fine.

Do I need to do anything special in the shell script?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120328/a65673fc/attachment.htm>


More information about the CMake mailing list