0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

jqでJSONをビカビカに点滅させる

Posted at

実例

jq.gif

しくみ

JQ_COLORS="0;90:0;35:5;36:5;33:5;32:5;38:5;34:5;31:5" jq -n '{field: 123}'

環境変数 JQ_COLORS で色を制御できます。フィールドの型ごとに ; 区切りで色を設定できます。

形式は {色}:{書式} で、ANSIエスケープシーケンスに準拠します。

書式の 5 が今回使用した「点滅」です。

一部の型のみ点滅させることで、目視確認等が楽になるかもしれません。
...そもそもフィルタを書けば絞り込めますが

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?