blaeck 0.4.0

A component-based terminal UI framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Simple hello world example demonstrating Blaeck's Ink-style inline rendering.

#[path = "previews/mod.rs"]
mod previews;

use blaeck::Blaeck;

fn main() -> std::io::Result<()> {
    let stdout = std::io::stdout();
    let mut blaeck = Blaeck::new(stdout)?;
    blaeck.render(previews::hello::build_ui())?;
    blaeck.unmount()?;
    println!("\nThis text appears below the UI.");
    Ok(())
}