@jsvision/web / BrowserHost
Interface: BrowserHost
Defined in: host.ts:83
The browser host surface wired to the event loop.
Methods
render()
render(
buffer):void
Defined in: host.ts:87
Diff buffer against the previous frame and write the ANSI delta to the terminal.
Parameters
buffer
ScreenBuffer
Returns
void
setCaret()
setCaret(
cell):void
Defined in: host.ts:89
Position (or hide, when null) the hardware caret — wire to the loop's onCaret.
Parameters
cell
CaretCell | null
Returns
void
start()
start():
void
Defined in: host.ts:85
Enable input modes and start pumping terminal bytes into the decoder.
Returns
void