basic/term-util: extend $SYSTEMD_COLORS
authorrnhmjoj <rnhmjoj@inventati.org>
Sun, 22 Nov 2020 01:37:27 +0000 (02:37 +0100)
committerrnhmjoj <rnhmjoj@inventati.org>
Tue, 15 Dec 2020 18:29:42 +0000 (19:29 +0100)
commitc4fea19abbbc59b81ed275683a49cbecb0e69472
treeef91e9931966c685e955f4184f78532a89c55310
parent239952e890fd4b53859f84bbc43d910e68a8f6bc
basic/term-util: extend $SYSTEMD_COLORS

This commit extends $SYSTEMD_COLORS to an enum variable (compared to
a simple boolean) which specifies the "colors mode". This means that, in
addition to disabling colors altogether, it's now possible to restrict
the console output to 16 or 256 colors only.
man/less-variables.xml
src/basic/terminal-util.c
src/basic/terminal-util.h