Skip to content

xn0tdev/comb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comb

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

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

About

Tiny native terminal UI engine for Rust

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages