Hyperlinkv0.8.0-beta.28

Terminal

Terminal.makeconsteffect/Terminal.ts:186
(impl: Omit<Terminal, typeof TypeId>): Terminal

Creates a Terminal service implementation.

When to use

Use to construct a custom Terminal service implementation from concrete terminal capabilities when writing a platform adapter, test implementation, or custom runtime service.

Details

The implementation object supplies columns, rows, readInput, readLine, and display; make attaches the Terminal service marker so the result can be provided through the Terminal context service.

constructors
export const make = (
  impl: Omit<Terminal, typeof TypeId>
): Terminal => Terminal.of({ ...impl, [TypeId]: TypeId })