English 中文(简体)
如何用jq改变无效/毛豆/大鼠的颜色? [复制]
原标题:How to change colors of null / boolean / number with jq? [duplicate]

想 j,我获得的产出如下:

enter image description here

是否有办法改变原产/毛豆/大豆的颜色?

Something like:

export jq_int_color=yellow
export jq_bool_color=red
export jq_null_color=black
最佳回答

你们可以通过确定JQ_来改变不同类型价值的颜色。 COLORS环境可变,可分为部分终点站越狱顺序的分号。 例如,如果你想要使价值白白白白白红、虚假价值绿色、真实价值蓝、数字黄色、扼杀五、阵列和物体白,你可以使用这一指令:

export JQ_COLORS= 0;31:0;32:0;34:0;33:0;35:0;36:1;37 

每张奶粉中的第一个胎体(如 bright、 di、 underscore等),第二胎显示有色(如黑色、红色、绿色等)。 你可以在jq文件中找到更多细节和实例。

违约的JQ_COLORS值是控制jq指挥线工具的彩色产出的一系列环境变量。

JQ_COLORS= 0;31:0;39:0;39:0;39:0;39:0;39:0;39:0;39:0;39:0;39:0;39 
export JQ_COLORS_ERROR= 1;31 
export JQ_COLORS_NULL= 1;30 
export JQ_COLORS_FALSE= 0;31 
export JQ_COLORS_TRUE= 0;32 
export JQ_COLORS_NUMBER= 0;33 
export JQ_COLORS_STRING= 0;35 
export JQ_COLORS_ARRAY= 1;37 
export JQ_COLORS_OBJECT= 1;37 
export JQ_COLORS_KEY= 0;33 

每个变量包括由半殖民地分离的数字,即ANSI为地缘和背景颜色逃避编码。 例如,0;31 是指黑色背景和红原。 你们可以改变这些价值观,以适应 j子的彩色计划。

问题回答

暂无回答




相关问题
regex for all characters on yahoo pipes

I have an apparently simple regex query for pipes - I need to truncate each item from it s (<img>) tag onwards. I thought a loop with string regex of <img[.]* replaced by blank field would ...

Linux Pipes as Input and Output

I would like to do the following inside a C program on a Linux os: Create a PIPE using a syscall (or 2) Execute a new process using exec() Connect the process s STDIN to to the previously created ...

C# Keeping Pipes Open

I ve Got two Programs (Server / Client) I m trying to setup IPC for them (They both run on the same box) Using System.IO.Pipes & Net 3.5 When I call ComOpen, it opens the Pipe correctly, sends ...

Closest equivalent to subprocess.communicate in Haskell

I want to do a popen() / python s subprocess.communicate from Haskell - start a program, give it stdin, and get its stdout/stderr. What s the most direct / Haskellish way to do this?

linux shell: How to read command argument from a file?

I have process id in a file "pid" I d like to kill it. Something like: kill -9 <read pid from file> I tried: kill -9 `more pid` but it does not work. I also tried xargs but can t get my ...

What does SIGPIPE in this situation mean?

I have the following script structure: script A opens PIPE on B, and B opens PIPE on C. So the dataflow is A->B->C. B catches SIGPIPE. Though descriptors IN and OUT are opened: $SIG{ PIPE } = sub { $...

热门标签