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

Function createFakeOutput

src/ink/inkRecoveryBehavior.test.tsx:73–80  ·  view source on GitHub ↗
(columns: number, rows: number)

Source from the content-addressed store, hash-verified

71}
72
73function createFakeOutput(columns: number, rows: number): FakeOutput {
74 const stdout = new PassThrough() as FakeOutput
75 stdout.isTTY = true
76 stdout.columns = columns
77 stdout.rows = rows
78 stdout.getWindowSize = () => [columns, rows]
79 return stdout
80}
81
82function createFakeTerminal(columns = 40, rows = 12): FakeTerminal {
83 let output = ''

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected