effect-io-ai

Package: @effect/platform-node-shared
Module: NodeTerminal

NodeTerminal.make

Creates a scoped process-backed Terminal using Node readline, enabling TTY raw mode while in scope and using the supplied predicate to decide when key input should end.

Signature

declare const make: (shouldQuit?: (input: Terminal.UserInput) => boolean) => Effect.Effect<Terminal.Terminal, never, Scope.Scope>

Source

Since v4.0.0