]> 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>
Tue, 18 Mar 2025 11:52:41 +0000 (12:52 +0100)
commitd1540888f60bce16c702d6353dcb4b64b1881e37
tree80490f84c7da4262f4d4c5ed6b9f2e1d3ac9ac00
parentea3af85155971890657248d51c6079499ccf8315
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>
(cherry picked from commit 61bd162fa1246a1d296cf943d12f7c01c8053b10)
lib/colors.c
lib/terminal-colors.d.5.adoc
man-common/colors.adoc