Celeritas 0.7.0-dev.130+develop.71a7ea01e
|
#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
.