Byron / prodash

report progress of concurrent applications and display it in various ways
https://docs.rs/prodash
MIT License
354 stars 9 forks source link

Minimal example doesn't work under Windows #14

Closed leontoeides closed 1 year ago

leontoeides commented 1 year ago

Hey there! Prodash looks awesome. Pretty excited to start using it but there is some confusion on how to get the renderer working.

Using the minimal example from here: https://docs.rs/prodash/21.0.0/prodash/render/tui/index.html

I updated the render_fut clause to:

// Configure the gui, provide it with a handle to the ever-changing tree
let render_fut = prodash::render::tui::render(
    std::io::stdout(),
    Arc::downgrade(&root),
    prodash::render::tui::Options {
        title: "minimal example".into(),
        ..prodash::render::tui::Options::default()
    }
)?;

When I run the example the screen is blank. Any advice? Thank you!