tinycrossterm 0.1.0

Minimal, feature-gated, WASM-compatible subset of crossterm
Documentation
  • Coverage
  • 20.96%
    35 out of 167 items documented0 out of 22 items with examples
  • Size
  • Source code size: 48.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 10.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dmk/tinycrossterm
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dmk

tinycrossterm

Minimal, feature-gated, WASM-compatible subset of crossterm.

Drop-in replacement for the crossterm APIs that ratatui-based TUI apps typically need — event types, raw mode, terminal size, alternate screen — with first-class wasm32-wasip1 support and granular feature flags to keep binary size small.

Features

All features are enabled by default. Disable what you don't need:

Feature Provides
events KeyCode, KeyEvent, KeyModifiers, MouseEvent, event reading
terminal enable_raw_mode, disable_raw_mode, size, EnterAlternateScreen
execute execute! macro for writing command sequences
# Only event types, no I/O
tinycrossterm = { version = "0.1", default-features = false, features = ["events"] }

WASM

Compiles and runs on wasm32-wasip1. Designed to work with terminal emulators like libghostty that provide a real VT to WASM processes.