MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / stopCapturingEarlyInput

Function stopCapturingEarlyInput

source code/utils/earlyInput.ts:144–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 4

mainFunction · 0.85
processChunkFunction · 0.85
consumeEarlyInputFunction · 0.85
AppClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected