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

Function createFakeInput

src/ink/replPerfHarness.tsx:113–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113function createFakeInput(): FakeInput {
114 const stdin = new PassThrough() as FakeInput
115 stdin.isTTY = true
116 stdin.isRaw = false
117 stdin.setRawMode = (raw: boolean) => {
118 stdin.isRaw = raw
119 }
120 stdin.ref = () => stdin
121 stdin.unref = () => stdin
122 return stdin
123}
124
125function createFakeOutput(columns: number, rows: number): FakeOutput {
126 const stdout = new PassThrough() as FakeOutput

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected