@termless/libvterm
v0.3.1
Published
libvterm backend for termless — neovim's VT parser via Emscripten WASM for cross-terminal TUI testing
Maintainers
Readme
@termless/libvterm
libvterm backend for termless -- wraps neovim's libvterm C library via Emscripten WASM.
libvterm is the VT parser used by neovim's built-in terminal. It provides a clean, standards-compliant implementation that differs from all other termless backends.
Build
Requires Emscripten SDK:
cd packages/libvterm
bash build/build.shThis generates wasm/libvterm.js and wasm/libvterm.wasm.
Usage
import { createLibvtermBackend, initLibvterm } from "@termless/libvterm"
import { createTerminal } from "@termless/core"
// Initialize WASM (once, memoized)
await initLibvterm()
const term = createTerminal({ backend: createLibvtermBackend(), cols: 80, rows: 24 })Or use the registry:
const term = await createTerminalByName("libvterm")