diff -r 82ba555a97d1 -r 13a41e435ea0 src/relpipe-out-xml.cpp --- a/src/relpipe-out-xml.cpp Sun Sep 16 14:39:10 2018 +0200 +++ b/src/relpipe-out-xml.cpp Sun Sep 16 18:12:31 2018 +0200 @@ -1,4 +1,5 @@ #include +#include #include #include @@ -19,6 +20,11 @@ int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; try { + + // TODO: color syntax highlighting if stdout is TTY: + // if (isatty(fileno(stdout))) std::cout << "color" << std::endl; + // else std::cout << "no-color" << std::endl; + std::shared_ptr reader(Factory::create(std::cin)); XmlHandler handler(std::cout); reader->addHandler(&handler);