webterm

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 3 Imported by: 0

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

func Run

func Run(comp *tui.Component)

Run runs the component against the page's terminal until it quits.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL