Chi-Tech
stringstream_color.cc
Go to the documentation of this file.
1
#include "
stringstream_color.h
"
2
3
#include "
chi_runtime.h
"
4
5
std::string
chi::StringStreamColor
(
StringSteamColorCode
code)
6
{
7
if
(
Chi::run_time::suppress_color_
)
return
{};
8
return
std::string(
"\033["
) + std::to_string(code) +
"m"
;
9
}
chi_runtime.h
Chi::run_time::suppress_color_
static bool suppress_color_
Definition:
chi_runtime.h:112
chi::StringStreamColor
std::string StringStreamColor(StringSteamColorCode code)
Definition:
stringstream_color.cc:5
chi::StringSteamColorCode
StringSteamColorCode
Definition:
stringstream_color.h:9
stringstream_color.h
framework
logging
stringstream_color.cc
Generated by
1.9.3