MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / clearLine

Function clearLine

src/ui/shimmer-worker.ts:113–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111// printed by the PARENT on the main thread (TTY-aware, codepage-immune) —
112// this worker's raw-byte path must never leave bytes in scrollback (#398).
113function clearLine(): void {
114 if (!currentMessage) return;
115 writeStdout(`\r\x1b[K`);
116 currentMessage = '';
117 currentPercent = -1;
118 currentCount = 0;
119}
120
121// Render loop — independent of main thread
122const tickInterval = setInterval(render, 50);

Callers 1

shimmer-worker.tsFile · 0.85

Calls 1

writeStdoutFunction · 0.85

Tested by

no test coverage detected