use stderr?!
All checks were successful
Deploy to VPS / deploy (push) Successful in 58s

This commit is contained in:
2025-11-06 22:33:18 +01:00
parent fbb21e70e5
commit 960b4a8f93

View File

@@ -24,7 +24,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
if use_alternate_screen { if use_alternate_screen {
execute!(stdout, EnterAlternateScreen)?; execute!(stdout, EnterAlternateScreen)?;
} }
let backend = CrosstermBackend::new(stdout); let backend = CrosstermBackend::new(std::io::stderr());
let mut terminal = Terminal::new(backend)?; let mut terminal = Terminal::new(backend)?;
eprintln!("terminal created"); eprintln!("terminal created");
@@ -34,8 +34,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
loop { loop {
let blink = (blink_counter / 3) % 2 == 0; let blink = (blink_counter / 3) % 2 == 0;
println!("UI rendering");
terminal.draw(|f| ui::draw(f, &app, blink))?; terminal.draw(|f| ui::draw(f, &app, blink))?;
std::io::stdout().flush()?; std::io::stderr().flush()?;
eprintln!("draw done"); eprintln!("draw done");
blink_counter += 1; blink_counter += 1;
let timeout = if app.show_welcome { let timeout = if app.show_welcome {