tinycrossterm 0.1.0

Minimal, feature-gated, WASM-compatible subset of crossterm
Documentation
//! Minimal, feature-gated, WASM-compatible subset of crossterm.
//!
//! Drop-in replacement for the crossterm APIs that ratatui-based TUI apps
//! typically need.

use std::io::Write;

/// A command that can be written as an ANSI escape sequence.
pub trait Command {
    fn write_ansi(&self, w: &mut impl Write) -> std::io::Result<()>;
}

#[cfg(feature = "execute")]
mod macros;

#[cfg(feature = "events")]
pub mod event;

#[cfg(feature = "terminal")]
pub mod terminal;

#[cfg(feature = "terminal")]
pub mod cursor;

#[cfg(feature = "terminal")]
pub mod style;