DNSControl is using colors on both its console and notification outputs, to denote changes, such as during preview or push events.
This is on by default in all interactive prompts supporting colors. See below on how to bypass it.
There are cases that we might need to disable colored output, such as in certain CI environments or particular notification mechanisms that don't support ANSI color codes.
In order to do so, a global
--no-colorscommand option is provided, which when set
--no-colors=true, will disable colors globally.
If color support is not correctly detected, providing
--no-colors=falsewould force-enable coloring, bypassing modules TTY detection.
Some CI environments, while supporting colors, fail autodetection, such as GHA. In that case, colors can be forcibly enabled via
--no-colors=falseor by setting a
CIenv variable to
true(if not autoset).