From fbb21e70e5dbc4d05b4591b46420722fb839b64a Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 22:18:40 +0100 Subject: [PATCH] add missing import --- src/main.rs | 4 ++-- src/ui.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 18654f2..404b715 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use crossterm::{ terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, }; use ratatui::{backend::CrosstermBackend, Terminal}; -use std::io::stdout; +use std::io::{stdout, Write}; fn main() -> Result<(), Box> { eprintln!("TUI started"); @@ -19,7 +19,7 @@ fn main() -> Result<(), Box> { _ => (80, 24), }; println!("Width: {}, Height: {}", width, height); - let use_alternate_screen = true; + let use_alternate_screen = false; let mut stdout = stdout(); if use_alternate_screen { execute!(stdout, EnterAlternateScreen)?; diff --git a/src/ui.rs b/src/ui.rs index 03aec85..378a194 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -9,8 +9,8 @@ use ratatui::{ use crate::app::App; pub fn draw(f: &mut Frame, app: &App, blink: bool) { - let bg_block = Block::default().style(Style::default().bg(app.theme.bg)); - f.render_widget(bg_block, f.size()); + // let bg_block = Block::default().style(Style::default().bg(app.theme.bg)); + // f.render_widget(bg_block, f.size()); if app.show_welcome { let fg = app.theme.fg;