From: rnhmjoj Date: Sun, 22 Nov 2020 01:37:27 +0000 (+0100) Subject: basic/term-util: extend $SYSTEMD_COLORS X-Git-Tag: v248-rc1~482^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4fea19abbbc59b81ed275683a49cbecb0e69472;p=thirdparty%2Fsystemd.git 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. --- diff --git a/man/less-variables.xml b/man/less-variables.xml index 3b32673f39e..3d8e200e44e 100644 --- a/man/less-variables.xml +++ b/man/less-variables.xml @@ -94,10 +94,11 @@ $SYSTEMD_COLORS - The value must be a boolean. Controls whether colorized output should be - generated. This can be specified to override the decision that systemd makes based - on $TERM and what the console is connected to. - + Takes a boolean argument. When true, systemd and related utilities + will use colors in their output, otherwise the output will be monochrome. Additionally, the variable can + take one of the following special values: 16, 256 to restrict the use + of colors to the base 16 or 256 ANSI colors, respectively. This can be specified to override the automatic + decision based on $TERM and what the console is connected to.