Skip to content

renderToolLineAnsi

renderToolLineAnsi(line, colour): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:752

Render one styled line as a raw string for the plain surface. Each line is SELF-STYLED (its own SGR open + reset) so lines compose safely regardless of surrounding styling. With colour false the raw text is returned unchanged — the clean monochrome degradation for non-TTY/piped output (DL-7); diff lines still read via their +/- prefixes.

ToolDisplayLine

boolean

string