Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to control colors of int/bool/number #3005

Closed
amills-vibeirl opened this issue Dec 25, 2023 · 2 comments
Closed

Allow user to control colors of int/bool/number #3005

amills-vibeirl opened this issue Dec 25, 2023 · 2 comments

Comments

@amills-vibeirl
Copy link

amills-vibeirl commented Dec 25, 2023

This is a feature request, not a bug.
As a user, I desire to change the color, for human-factors, readability:
https://stackoverflow.com/q/77714718/1223975

maybe something like:

export jq_int_color='yellow'
export jq_bool_color='red'
export jq_null_color='black'
@wader
Copy link
Member

wader commented Dec 25, 2023

Not as fancy but it is possible to use JQ_COLORS to do this, see https://jqlang.github.io/jq/manual/#colors

# default colors but int yellow, bools red, null dark grey
JQ_COLORS="0;90:0;31:0;31:0;33:0;32:1;39:1;39:1;34" jq -n '123, true, null'

@amills-vibeirl
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants