]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostnamectl: respect SYSTEMD_COLORS
authorSebastian Gross <sgross@emlix.com>
Tue, 10 Dec 2024 08:09:41 +0000 (09:09 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Dec 2024 10:03:19 +0000 (11:03 +0100)
commitf0484e096c9cfc22ae99f7452a366e2545255e30
treeb8083e74f7c1d17ff1ecdc888da74a04a64c1642
parent053cbabce73fea578e2f9e1d4c7d7ec3b58bc3cd
hostnamectl: respect SYSTEMD_COLORS

Instead of the wrapper functions the color defines where used directly.
This was especially a problem for ANSI_HIGHLIGHT_YELLOW which is not
legible at all for light themes such as solarized. The 16 color palette
fallback can be set to a sane yellow or orange on that matter but it was
not used though `SYSTEMD_COLORS=16` was set.

Use the proper wrapper functions and let the right color be selected the
way other components do it already.
src/hostname/hostnamectl.c