()
| 38 | }) |
| 39 | |
| 40 | function createFakeInput(): FakeInput { |
| 41 | const stdin = new PassThrough() as FakeInput |
| 42 | stdin.isTTY = true |
| 43 | stdin.isRaw = false |
| 44 | stdin.setRawMode = (raw: boolean) => { |
| 45 | stdin.isRaw = raw |
| 46 | } |
| 47 | stdin.ref = () => stdin |
| 48 | stdin.unref = () => stdin |
| 49 | return stdin |
| 50 | } |
| 51 | |
| 52 | function createFakeOutput(columns: number, rows: number): FakeOutput { |
| 53 | const stdout = new PassThrough() as FakeOutput |