MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / ansi

Function ansi

tests/CAT_Flex_test.cpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51static bool g_tty = false;
52
53static QString ansi(const char* code, const QString& s)
54{
55 if (!g_tty) return s;
56 return QLatin1String("\033[") + QLatin1String(code) + 'm' + s + QLatin1String("\033[0m");
57}
58
59static QString green(const QString& s) { return ansi("92", s); }
60static QString red(const QString& s) { return ansi("91", s); }

Callers 5

greenFunction · 0.70
redFunction · 0.70
yellowFunction · 0.70
cyanFunction · 0.70
boldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected