Documentation
¶
Rendered for js/wasm
Overview ¶
Package webterm runs a sumi component in the browser against an xterm.js host. The page provides three globals before starting the wasm module:
sumiWrite(str) — receives ANSI output (feed to term.write) sumiCols / sumiRows — current terminal dimensions (numbers)
and drives input by calling the global this package registers:
sumiInput(str) — raw key bytes (wire to term.onData) sumiResize(c, r) — viewport changes (wire to term.onResize)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.