MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / color

Function color

apps/kimi-code/scripts/postinstall/ui.mjs:53–55  ·  view source on GitHub ↗
(c, text)

Source from the content-addressed store, hash-verified

51const C_CYAN = USE_COLOR ? '\x1b[36m' : '';
52
53function color(c, text) {
54 return USE_COLOR ? c + text + C_RESET : text;
55}
56
57function visibleLength(s) {
58 return s.replace(ANSI_ESCAPE, '').length;

Callers 6

renderDiffLinesFunction · 0.85
boxBorderFunction · 0.85
boxLineFunction · 0.85
pathInBoxFunction · 0.85
successHeadingFunction · 0.85
warningHeadingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected