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

Function isColorOptOut

apps/kimi-code/src/tui/theme/detect.ts:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44function isColorOptOut(): boolean {
45 const env = process.env;
46 if (env["NO_COLOR"] !== undefined && env["NO_COLOR"] !== "") return true;
47 if (env["FORCE_COLOR"] === "0") return true;
48 if (env["CI"] !== undefined && env["CI"] !== "" && env["CI"] !== "0") return true;
49 return false;
50}
51
52interface RawModeStdin {
53 isRaw?: boolean;

Callers 1

detectTerminalThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected