diff --git a/src/main.rs b/src/main.rs index 7d0120b..18654f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ fn main() -> Result<(), Box> { _ => (80, 24), }; println!("Width: {}, Height: {}", width, height); - let use_alternate_screen = false; + let use_alternate_screen = true; let mut stdout = stdout(); if use_alternate_screen { execute!(stdout, EnterAlternateScreen)?; @@ -35,6 +35,8 @@ fn main() -> Result<(), Box> { loop { let blink = (blink_counter / 3) % 2 == 0; terminal.draw(|f| ui::draw(f, &app, blink))?; + std::io::stdout().flush()?; + eprintln!("draw done"); blink_counter += 1; let timeout = if app.show_welcome { std::time::Duration::from_millis(70)