MCPcopy
hub / github.com/codeaashu/claude-code / stopCapturingEarlyInput

Function stopCapturingEarlyInput

src/utils/earlyInput.ts:142–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 * Called automatically when input is consumed, or can be called manually.
141 */
142export 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.

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected