From 960b4a8f933868403d9fe7a7c365712b487b4707 Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 22:33:18 +0100 Subject: [PATCH] use stderr?! --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 404b715..7d1260b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,7 +24,7 @@ fn main() -> Result<(), Box> { if use_alternate_screen { execute!(stdout, EnterAlternateScreen)?; } - let backend = CrosstermBackend::new(stdout); + let backend = CrosstermBackend::new(std::io::stderr()); let mut terminal = Terminal::new(backend)?; eprintln!("terminal created"); @@ -34,8 +34,9 @@ fn main() -> Result<(), Box> { loop { let blink = (blink_counter / 3) % 2 == 0; + println!("UI rendering"); terminal.draw(|f| ui::draw(f, &app, blink))?; - std::io::stdout().flush()?; + std::io::stderr().flush()?; eprintln!("draw done"); blink_counter += 1; let timeout = if app.show_welcome {