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

Function createFakeOutput

src/ink/selectionDragAutoscrollFlicker.test.tsx:67–74  ·  view source on GitHub ↗
(columns: number, rows: number)

Source from the content-addressed store, hash-verified

65}
66
67function createFakeOutput(columns: number, rows: number): FakeOutput {
68 const stdout = new PassThrough() as FakeOutput
69 stdout.isTTY = true
70 stdout.columns = columns
71 stdout.rows = rows
72 stdout.getWindowSize = () => [columns, rows]
73 return stdout
74}
75
76function createFakeTerminal(columns = 40, rows = 12): FakeTerminal {
77 let output = ''

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected