()
| 140 | * Called automatically when input is consumed, or can be called manually. |
| 141 | */ |
| 142 | export function stopCapturingEarlyInput(): void { |
| 143 | if (!isCapturing) { |
| 144 | return |
| 145 | } |
| 146 | |
| 147 | isCapturing = false |
| 148 | |
| 149 | if (readableHandler) { |
| 150 | process.stdin.removeListener('readable', readableHandler) |
| 151 | readableHandler = null |
| 152 | } |
| 153 | |
| 154 | // Don't reset stdin state - the REPL's Ink App will manage stdin state. |
| 155 | // If we call setRawMode(false) here, it can interfere with the REPL's |
| 156 | // own stdin setup which happens around the same time. |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Consume any early input that was captured. |
no outgoing calls
no test coverage detected