Variable: ansi-color-for-compilation-mode
ansi-color-for-compilation-mode is a customizable variable defined in
ansi-color.el.gz.
Value
t
Documentation
Determines what to do with compilation output.
If nil, do nothing.
If the symbol filter, then filter all ANSI graphical control
sequences.
If anything else (such as t), then translate ANSI graphical control sequences into text properties.
In order for this to have any effect, ansi-color-compilation-filter
must be in compilation-filter-hook.
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/ansi-color.el.gz
(defcustom ansi-color-for-compilation-mode t
"Determines what to do with compilation output.
If nil, do nothing.
If the symbol `filter', then filter all ANSI graphical control
sequences.
If anything else (such as t), then translate ANSI graphical
control sequences into text properties.
In order for this to have any effect, `ansi-color-compilation-filter'
must be in `compilation-filter-hook'."
:type '(choice (const :tag "Do nothing" nil)
(const :tag "Filter" filter)
(other :tag "Translate" t))
:group 'ansi-colors
:version "28.1")