terminal-util: get_color_mode checks COLORTERM

This commit is contained in:
Sonali Srivastava
2022-05-05 09:18:51 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 51cef2b56f
commit a5efbf468c
2 changed files with 12 additions and 4 deletions
+7 -4
View File
@@ -100,16 +100,19 @@ typedef enum AcquireTerminalFlags {
/* Limits the use of ANSI colors to a subset. */
typedef enum ColorMode {
/* No colors, monochrome output. */
COLOR_OFF = 0,
COLOR_OFF,
/* All colors, no restrictions. */
COLOR_ON = 1,
COLOR_ON,
/* Only the base 16 colors. */
COLOR_16 = 16,
COLOR_16,
/* Only 256 colors. */
COLOR_256 = 256,
COLOR_256,
/* For truecolor or 24bit color support.*/
COLOR_24BIT,
_COLOR_INVALID = -EINVAL,
} ColorMode;