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

Function createFakeInput

src/ink/inkRecoveryBehavior.test.tsx:61–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59})
60
61function createFakeInput(): FakeInput {
62 const stdin = new PassThrough() as FakeInput
63 stdin.isTTY = true
64 stdin.isRaw = false
65 stdin.setRawMode = (raw: boolean) => {
66 stdin.isRaw = raw
67 }
68 stdin.ref = () => stdin
69 stdin.unref = () => stdin
70 return stdin
71}
72
73function createFakeOutput(columns: number, rows: number): FakeOutput {
74 const stdout = new PassThrough() as FakeOutput

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected