--- 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 <cstdlib>
+#include <unistd.h>
#include <memory>
#include <relpipe/cli/CLI.h>
@@ -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<RelationalReader> reader(Factory::create(std::cin));
XmlHandler handler(std::cout);
reader->addHandler(&handler);