|
Celeritas 0.7.0-dev.196+develop.8d0d9047c
|
Helper functions for writing colors to the terminal. More...

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. | |
Helper functions for writing colors to the terminal.
| 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.