NodeTerminal.ts
NodeTerminal.ts overview
Section titled “NodeTerminal.ts overview”Node.js implementation of the Effect Terminal service.
This module reuses the shared Node terminal implementation. make creates a
scoped process-backed Terminal service, and layer provides the default
service with the standard quit behavior for key input.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”constructors
Section titled “constructors”Creates a scoped Terminal service backed by process stdin/stdout, using the
optional predicate to decide when key input should end the input stream.
Signature
declare const make: (shouldQuit?: (input: UserInput) => boolean) => Effect<Terminal, never, Scope>Since v4.0.0
layers
Section titled “layers”Provides the default process-backed Terminal service, ending key input on
the default quit keys.
Signature
declare const layer: Layer<Terminal, never, never>Since v4.0.0