NO_COLOR.rst 638 B

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