]> git.ipfire.org Git - thirdparty/util-linux.git/commit
terminal-colors.d: support NO_COLOR
authorKarel Zak <kzak@redhat.com>
Mon, 17 Mar 2025 12:38:20 +0000 (13:38 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Mar 2025 12:38:20 +0000 (13:38 +0100)
commit61bd162fa1246a1d296cf943d12f7c01c8053b10
tree4a94a8b1c561447939c2f7a7023fc2bdbcbcc428
parent405cd1b43dbe5ae21e7dac6f6e026d51b50e9617
terminal-colors.d: support NO_COLOR

We already provide the ability to easily disable output colorization,
but there is also the https://no-color.org initiative based on the
NO_COLOR environment variable. Let's support this method to disable
colors. Let's be friendly :-)

Addresses: https://github.com/util-linux/util-linux/issues/3463
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/colors.c
lib/terminal-colors.d.5.adoc
man-common/colors.adoc