Skip to content

@jsvision/web / BrowserHostOptions

Interface: BrowserHostOptions

Defined in: host.ts:93

Options for createBrowserHost.

Properties

caps

readonly caps: CapabilityProfile

Defined in: host.ts:97

The capability profile driving serialize()/decode() (build one with buildBrowserCaps).


onInput

readonly onInput: (event) => void

Defined in: host.ts:99

Sink for decoded input events (wire to loop.dispatch).

Parameters

event

InputEvent

Returns

void


term

readonly term: TerminalLike

Defined in: host.ts:95

The terminal to render into and read input from (any object satisfying TerminalLike).


timer?

readonly optional timer?: TimerSeam

Defined in: host.ts:101

Timer seam; defaults to the global timers. Inject a fake to drive the lone-ESC flush in tests.