Currently ANSI colors are enabled if the environment variable CHICKEN_DOC_COLORS is set to any value and a functional terminal has been detected. This PR implements a check for the specific value of CHICKEN_DOC_COLORS against always/never/auto and either unconditionally enables/disables or autodetects color support. Unknown values are interpreted as unconditionally disabling it.
Currently ANSI colors are enabled if the environment variable
CHICKEN_DOC_COLORS
is set to any value and a functional terminal has been detected. This PR implements a check for the specific value ofCHICKEN_DOC_COLORS
against always/never/auto and either unconditionally enables/disables or autodetects color support. Unknown values are interpreted as unconditionally disabling it.