MCPcopy Create free account
hub / github.com/Stevenic/codepilot / replaceLine

Method replaceLine

src/internals/Colorize.ts:12–14  ·  view source on GitHub ↗

* Replaces the current line with the given text. * @param text The text to replace the current line with.

(text: string)

Source from the content-addressed store, hash-verified

10 * @param text The text to replace the current line with.
11 */
12 public static replaceLine(text: string): string {
13 return '\x1b[A\x1b[2K' + text;
14 }
15
16 /**
17 * Renders the given text as error text.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected