gst-inspect: Colored output
authorZeeshan Ali <zeenix@collabora.co.uk>
Sat, 27 Oct 2018 17:06:20 +0000 (18:06 +0100)
committerZeeshan Ali <zeenix@collabora.co.uk>
Fri, 23 Nov 2018 15:15:19 +0000 (16:15 +0100)
commit2cf16838c54e506f4f234ba71d42565e97b45b0d
tree280db65176ba964267cd1c25bd50f34e096ca25b
parentd3811ca5cdd3015cdc7329054c99b505316c04f2
gst-inspect: Colored output

Let's make the output a bit pretty to read. The colored output can be
disabled with `--no-colors` option or by setting `GST_INSPECT_NO_COLORS'
env (to any value).

The chosen colors are based on the popular Solarized theme, which is
targeted for both dark and light backgrounds.

Note:

* We only support true colors. If the terminal doesn't signal support for
  that via 'COLORTERM' env, we disable colored output.

* We don't add colors to --print-plugin-auto-install-info output, as
  that's meant for machines, not humans. Not only machines don't care
  about beauty, the existing ones will likely not expect colors and choke
  on it and we'll get angry mob at our doors.

[1] https://ethanschoonover.com/solarized
tools/gst-inspect-1.0.1
tools/gst-inspect.c