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

Function createFakeInput

src/ink/selectionDragAutoscrollFlicker.test.tsx:55–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53})
54
55function createFakeInput(): FakeInput {
56 const stdin = new PassThrough() as FakeInput
57 stdin.isTTY = true
58 stdin.isRaw = false
59 stdin.setRawMode = (raw: boolean) => {
60 stdin.isRaw = raw
61 }
62 stdin.ref = () => stdin
63 stdin.unref = () => stdin
64 return stdin
65}
66
67function createFakeOutput(columns: number, rows: number): FakeOutput {
68 const stdout = new PassThrough() as FakeOutput

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected