MCPcopy Create free account
hub / github.com/Effect-TS/effect / onClose

Function onClose

packages/platform/node-shared/src/NodeTerminal.ts:58–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 const rl = readline.createInterface({ input: stdin, escapeCodeTimeout: 50 })
57 const onLine = (line: string) => Queue.offerUnsafe(lines, line)
58 const onClose = () => {
59 readlineActive = false
60 Queue.endUnsafe(lines)
61 }
62 readlineActive = true
63 readline.emitKeypressEvents(stdin, rl)
64 rl.on("line", onLine)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected