CLICOLOR_FORCE.rst 755 B

1234567891011121314151617181920
  1. CLICOLOR_FORCE
  2. --------------
  3. .. versionadded:: 3.5
  4. .. include:: include/ENV_VAR.rst
  5. Set to a non-empty value, other than ``0``, to tell command-line
  6. tools to print color messages even if not connected to a terminal.
  7. This is a `common convention`_ among command-line tools in general.
  8. See also the :envvar:`NO_COLOR` and :envvar:`CLICOLOR` environment variables.
  9. If :envvar:`NO_COLOR` is activated, it takes precedence over
  10. :envvar:`!CLICOLOR_FORCE`. Otherwise, if :envvar:`!CLICOLOR_FORCE` is
  11. activated, it takes precedence over :envvar:`CLICOLOR`.
  12. See the :variable:`CMAKE_COLOR_DIAGNOSTICS` variable to control
  13. color in a generated build system.
  14. .. _`common convention`: https://web.archive.org/web/20250410160803/https://bixense.com/clicolors/