BunTerminal.ts
BunTerminal.ts overview
Section titled “BunTerminal.ts overview”Bun-backed implementation of Effect’s Terminal service.
This module reuses the shared Node terminal implementation for Bun. make
creates a scoped process-backed Terminal service, and layer provides the
default terminal 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