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

Function writeTerminalCleanup

src/ink/terminalCleanup.ts:7–18  ·  view source on GitHub ↗
(
  stdout: CleanupStream,
  content: string,
)

Source from the content-addressed store, hash-verified

5}
6
7export function writeTerminalCleanup(
8 stdout: CleanupStream,
9 content: string,
10): void {
11 const fd = stdout.fd
12 if (typeof fd === 'number' && Number.isInteger(fd) && fd >= 0) {
13 writeSync(fd, content)
14 return
15 }
16
17 stdout.write(content)
18}

Callers 2

unmountMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected