]> granicus.if.org Git - jq/commitdiff
Changing color codes to fix #495
authorWilliam Langford <wlangfor@gmail.com>
Tue, 22 Jul 2014 00:08:42 +0000 (20:08 -0400)
committerNicolas Williams <nico@cryptonector.com>
Wed, 23 Jul 2014 04:05:43 +0000 (23:05 -0500)
jv_print.c

index f01d6a16548819111f51e607692f850b83189a62..4467266ba144ab59d3529a0897da4ec9b02073eb 100644 (file)
@@ -17,8 +17,8 @@ static const jv_kind colour_kinds[] =
   {JV_KIND_NULL,   JV_KIND_FALSE, JV_KIND_TRUE, JV_KIND_NUMBER,
    JV_KIND_STRING, JV_KIND_ARRAY, JV_KIND_OBJECT};
 static const char* const colours[] =
-  {COL("30;1"),    COL("0"),      COL("0"),     COL("0"),
-   COL("32"),      COL("37"),     COL("37")};
+  {COL("1;30"),    COL("0;39"),      COL("0;39"),     COL("0;39"),
+   COL("0;32"),      COL("1;39"),     COL("1;39")};
 #define FIELD_COLOUR COL("34;1")
 
 static void put_buf(const char* s, int len, FILE* fout, jv* strout) {