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
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages
On 2/10/2012 3: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?
Not currently. The isatty test is hard-coded here:
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.