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

Function ansi

tests/rigctld_test.cpp:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54static bool g_tty = false;
55
56QString ansi(const char* code, const QString& s)
57{
58 if (!g_tty) return s;
59 return QLatin1String("\033[") + QLatin1String(code) + 'm' + s + QLatin1String("\033[0m");
60}
61
62static QString green(const QString& s) { return ansi("92", s); }
63static 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