This is a perl wrapper script for ninja that will colorize its output without turning off ninja's "smart terminal" features. Currently it assumes that CMake is the generator.
I'm an inexperienced perl user so this is probably crappy code but it seems to work and I think the approach is promising. Patches are welcome.
How to use
- Make sure
ninjais in your path.
- Optionally, copy the
cninjajust like you would call
- If you are using clang, call with the
How it works
ninja in a pseudo terminal, parses the output with
copious regular expressions, and injects ansi color codes.