From a65ce09e8e0c2a56dd474b1021d876e1edd76d5f Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 20:05:46 +0100 Subject: [PATCH] Debugging width height error --- src/main.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 76deca2..c0b13ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,11 +13,12 @@ use std::io::stdout; fn main() -> Result<(), Box> { enable_raw_mode()?; let (width, height) = crossterm::terminal::size()?; - if width < 15 || height < 15 { - disable_raw_mode()?; - println!("Your console is too small."); - return Ok(()); - } + println!("Width: {}, Height: {}", width, height); + // if width < 15 || height < 15 { + // disable_raw_mode()?; + // println!("Your console is too small."); + // return Ok(()); + // } let mut stdout = stdout(); execute!(stdout, EnterAlternateScreen)?; let backend = CrosstermBackend::new(stdout);