@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
6 lines (5 loc) • 374 B
TypeScript
/** Removes CSI sequences (colors, cursor moves, modes), OSC sequences (window
* titles, hyperlinks) and carriage returns. Line breaks and every printable
* character are kept, box drawing and spinners included: callers that parse a
* harness screen drop those themselves, because there they carry meaning. */
export declare function stripTerminal(text: string): string;