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

Function flushBufferedStdout

src/ink/log-update.ts:1230–1240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1228 let bufferedStdoutColumns = 0
1229
1230 const flushBufferedStdout = () => {
1231 if (bufferedStdoutColumns === 0) {
1232 return
1233 }
1234 screen.diff.push({ type: 'stdout', content: bufferedStdout })
1235 bufferedStdoutRuns += 1
1236 bufferedStdoutCells += bufferedStdoutColumns
1237 bufferedStdoutBytes += Buffer.byteLength(bufferedStdout)
1238 bufferedStdout = ''
1239 bufferedStdoutColumns = 0
1240 }
1241
1242 let index = startY * screenWidth
1243 for (let y = startY; y < endY; y += 1) {

Callers 1

renderFrameSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected