comb-tui 0.2.0

A tiny native terminal-UI engine — surfaces, layers, widgets.
Documentation

comb

Tiny native terminal UI engine for Rust. No ratatui, no crossterm — a diffed cell grid, composited surfaces, and a small widget set.

  • Linux / macOS: termios + ANSI
  • Windows 10+: Console VT + ANSI (Windows Terminal recommended)
comb-tui = "0.1"
use comb::{Color, Style, Terminal};

fn main() -> std::io::Result<()> {
    let mut term = Terminal::new()?;
    term.draw(|f| {
        f.buffer().set_str(
            2,
            1,
            "hello, comb",
            Style::new().fg(Color::rgb(0xe6, 0xe6, 0xe6)),
        );
    })?;
    Ok(())
}

The crates.io package is comb-tui (the name comb was taken); the Rust crate is still comb.

cargo run --example demo

License

MIT