MCPcopy Create free account
hub / github.com/catboost/catboost / EAnsiCode>

Method EAnsiCode>

library/cpp/colorizer/colors.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147template<>
148void Out<NColorizer::EAnsiCode>(IOutputStream& os, TTypeTraits<NColorizer::EAnsiCode>::TFuncParam x) {
149 if (AutoColors(os).IsTTY()) {
150 os << ToStringBufC(x);
151 }
152}
153
154bool TColors::CalcIsTTY(FILE* file) {
155 if (GetEnv("ENFORCE_TTY")) {

Callers

nothing calls this directly

Calls 2

ToStringBufCFunction · 0.85
IsTTYMethod · 0.80

Tested by

no test coverage detected