MCPcopy Create free account
hub / github.com/Noumena-Network/code / clearStatusLines

Function clearStatusLines

src/bridge/bridgeUI.ts:125–132  ·  view source on GitHub ↗

Clear any currently displayed status lines.

()

Source from the content-addressed store, hash-verified

123
124 /** Clear any currently displayed status lines. */
125 function clearStatusLines(): void {
126 if (statusLineCount <= 0) return
127 logForDebugging(`[bridge:ui] clearStatusLines count=${statusLineCount}`)
128 // Move cursor up to the start of the status block, then erase everything below
129 write(`\x1b[${statusLineCount}A`) // cursor up N lines
130 write('\x1b[J') // erase from cursor to end of screen
131 statusLineCount = 0
132 }
133
134 /** Print a permanent log line, clearing status first and restoring after. */
135 function printLog(line: string): void {

Callers 6

printLogFunction · 0.85
renderConnectingLineFunction · 0.85
renderStatusLineFunction · 0.85
updateReconnectingStatusFunction · 0.85
updateFailedStatusFunction · 0.85
clearStatusFunction · 0.85

Calls 2

writeFunction · 0.70
logForDebuggingFunction · 0.50

Tested by

no test coverage detected