jq colorscheme in env vars >:)
Opened this issue · 0 comments
rpdelaney commented
COLORS
To configure alternative colors just set the JQ_COLORS environment variable to colon-delimited list of partial terminal escape sequences like "1;31", in this order:
o color for null
o color for false
o color for true
o color for numbers
o color for strings
o color for arrays
o color for objects
The default color scheme is the same as setting "JQ_COLORS=1;30:0;39:0;39:0;39:0;32:1;39:1;39".
This is not a manual for VT100/ANSI escapes. However, each of these color specifications should consist of two numbers separated by a semi-colon, where the first number is one of these:
o 1 (bright)
o 2 (dim)
o 4 (underscore)
o 5 (blink)
o 7 (reverse)
o 8 (hidden)
and the second is one of these:
o 30 (black)
o 31 (red)
o 32 (green)
o 33 (yellow)
o 34 (blue)
o 35 (magenta)
o 36 (cyan)
o 37 (white)