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

Function createFakeOutput

src/ink/replPerfHarness.tsx:125–132  ·  view source on GitHub ↗
(columns: number, rows: number)

Source from the content-addressed store, hash-verified

123}
124
125function createFakeOutput(columns: number, rows: number): FakeOutput {
126 const stdout = new PassThrough() as FakeOutput
127 stdout.isTTY = true
128 stdout.columns = columns
129 stdout.rows = rows
130 stdout.getWindowSize = () => [columns, rows]
131 return stdout
132}
133
134export function createFakeTerminal(columns = 80, rows = 24): FakeTerminal {
135 let output = ''

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected