From 647193a23092d406fd98555ad23275633e972862 Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 22:13:30 +0100 Subject: [PATCH] Term --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)