Skip to content

isStdoutTTY

isStdoutTTY(): boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/systemUtils.ts:285

Whether STDOUT is a terminal — distinct from isTTY, which reports on STDIN.

Colour is a property of where output GOES, so the colour auto-detection (CFG-30 rung 4, see config/colour.ts) asks this one: gth ask … > out.txt keeps an interactive stdin while stdout is a file, and that run must not emit escapes. Read at call time so a test can declare the terminal it wants in setup.

boolean