MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / dim

Function dim

src/setup/prompt.ts:272–275  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

270}
271
272function dim(s: string): string {
273 // ANSI dim — only if stdout is a TTY, otherwise plain
274 return process.stdout.isTTY ? `\x1b[2m${s}\x1b[0m` : s;
275}
276
277/** Detect whether we have an interactive TTY. CI environments / pipes return false. */
278export function isInteractiveTTY(): boolean {

Callers 2

renderFunction · 0.85
chooseNumberedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected