tmaze 1.17.1

Simple multiplatform maze solving game for terminal written entirely in Rust
Documentation
use std::io;

use crossterm::event::KeyCode;
use tmaze::{
    app::{Activity, App},
    ui::popup,
};

fn main() -> io::Result<()> {
    let mut app = App::new(
        Activity::new_base_boxed(
            "popup",
            popup::Popup::new(
                "Title".to_string(),
                vec![
                    "Line 1".to_string(),
                    "Line 2".to_string(),
                    "Line 3".to_string(),
                ],
            ),
        ),
        true,
    );

    let res = app.run();

    // Manually drop the app, so we can se the printout
    drop(app);

    match res {
        Some(res) => {
            println!("Result: {:?}", res.downcast::<KeyCode>());
        }
        None => {
            println!("No result");
        }
    }

    Ok(())
}