It will detect whether or not stdout/stderr are a console/TTY and will consequently disable colored output if needed.
See Source File
Boost Software License 1.0
Copyright (c) 2021, Joakim Brännström. All rights reserved.
Joakim Brännström (joakim.brannstrom@gmx.com)
Terminal colors. initColors must be called for the colors to be activated. Colors are automatically toggled off if the output is not an interactive tty. This can be bypassed by calling initColors with true.