MCPcopy Create free account
hub / github.com/bombshell-dev/clack / isTTY

Function isTTY

packages/prompts/src/common.ts:8–10  ·  view source on GitHub ↗
(output: Writable)

Source from the content-addressed store, hash-verified

6export const unicode = isUnicodeSupported();
7export const isCI = (): boolean => process.env.CI === 'true';
8export const isTTY = (output: Writable): boolean => {
9 return (output as Writable & { isTTY?: boolean }).isTTY === true;
10};
11export const unicodeOr = (c: string, fallback: string) => (unicode ? c : fallback);
12export const S_STEP_ACTIVE = unicodeOr('◆', '*');
13export const S_STEP_CANCEL = unicodeOr('■', 'x');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected