|
Celeritas 0.7.0-dev.196+develop.8d0d9047c
|
#include "ColorUtils.hh"#include <cstdio>#include <cstdlib>#include <string>#include <unistd.h>#include "corecel/sys/Environment.hh"Functions | |
| bool | celeritas::use_color () |
| Whether colors are enabled (currently read-only). | |
| char const * | celeritas::color_code (char abbrev) |
| Get an ANSI color codes if colors are enabled. | |
| char const * celeritas::color_code | ( | char | abbrev | ) |
Get an ANSI color codes if colors are enabled.
| bool celeritas::use_color | ( | ) |
Whether colors are enabled (currently read-only).
This checks the CELER_COLOR environment variable, or the GTEST_COLOR variable (if it is defined and CELER_COLOR is not), and defaults based on the terminal settings of stderr.