|
Celeritas 0.7.0-dev.277+develop.2401d1ca
|
Helper functions for writing colors to the terminal. More...
#include "corecel/Macros.hh"Functions | |
| bool | celeritas::use_color () |
| Whether colors are enabled by the environment. | |
| char const * | celeritas::ansi_color (char abbrev) |
| Get an ANSI color codes if colors are enabled. | |
| char const * | celeritas::color_code (char abbrev) |
Helper functions for writing colors to the terminal.
| char const * celeritas::ansi_color | ( | char | abbrev | ) |
Get an ANSI color codes if colors are enabled.
null reset color| bool celeritas::use_color | ( | ) |
Whether colors are enabled by the environment.
The NO_COLOR environment variable, if set to a non-empty value, disables color output. If either of the CELER_COLOR or GTEST_COLOR variables is set, that value will be used. Failing that, the default is true if stderr is a tty. The result of this value is used by ansi_color .