summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-08 19:36:52 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-08 19:37:12 +0100
commita511d03d85d734b149856289237ae5e2461f6bbe (patch)
tree7e4a44a2f408a5bcc637a4deebf37855d403c992 /main.c
parent9d245c88c4768444e7e36c88f9ae9976ecdcdec8 (diff)
Configure whether colour is displayed by default directly in source
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 4b0d496d..774dc61e 100644
--- a/main.c
+++ b/main.c
@@ -74,8 +74,10 @@ static void process(jv value, int flags) {
jv_free(result);
} else {
int dumpopts;
-#ifdef JQ_DEFAULT_ENABLE_COLOR
- dumpopts = JQ_DEFAULT_ENABLE_COLOR ? JV_PRINT_COLOUR : 0;
+ /* Disable colour by default on Windows builds as Windows
+ terminals tend not to display it correctly */
+#ifdef WIN32
+ dumpopts = 0;
#else
dumpopts = isatty(fileno(stdout)) ? JV_PRINT_COLOUR : 0;
#endif