]> git.ipfire.org Git - thirdparty/systemd.git/commit
ansi-color: $SYSTEMD_COLORS=true should mean generic "auto", not 24bit 40442/head
authorMike Yuan <me@yhndnzj.com>
Fri, 23 Jan 2026 14:12:58 +0000 (15:12 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 27 Jan 2026 18:20:30 +0000 (19:20 +0100)
commitcc7fe807c163154003bfa47359d952cfd9ca84f1
treed95bd01271742bb9ad6c23aaee4f114939b5d172
parent97be547c6f87b996fe389d00f3a1426c082c3c5c
ansi-color: $SYSTEMD_COLORS=true should mean generic "auto", not 24bit

Follow-up for af718e05350884c0b6a9fa7248e5d2f2564c93f0

The commit changed the documentation, but the actual impl
was apparently not updated. And the documented behavior
feels a bit off. I think generally "auto"/true should
override $NO_COLOR.

Plus, the test for auto-24bit is at odds with the logic
we merged. I guess it was overlooked after applying
https://github.com/systemd/systemd/pull/40303#discussion_r2720450393
man/common-variables.xml
src/basic/ansi-color.c
src/basic/ansi-color.h
src/test/test-format-table.c
src/test/test-qrcode-util.c
src/test/test-terminal-util.c