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

Function onLine

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

Source from the content-addressed store, hash-verified

55 Effect.sync(() => {
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)

Callers

nothing calls this directly

Calls 1

offerUnsafeMethod · 0.80

Tested by

no test coverage detected