Dockerfile and main.rs changes revert
All checks were successful
Deploy to VPS / deploy (push) Successful in 1m1s

This commit is contained in:
2025-11-06 22:02:02 +01:00
parent fee61c023b
commit b988a7a3b3
2 changed files with 3 additions and 3 deletions

View File

@@ -11,14 +11,14 @@ use ratatui::{backend::CrosstermBackend, Terminal};
use std::io::stdout;
fn main() -> Result<(), Box<dyn std::error::Error>> {
eprintln!("TUI started");
enable_raw_mode()?;
let (width, height) = match crossterm::terminal::size() {
Ok((w, h)) if w > 0 && h > 0 => (w, h),
_ => (80, 24),
};
println!("Width: {}, Height: {}", width, height);
let use_alternate_screen =
std::env::var("SSH_CLIENT").is_err() && std::env::var("SSH_TTY").is_err();
let use_alternate_screen = true;
let mut stdout = stdout();
if use_alternate_screen {
execute!(stdout, EnterAlternateScreen)?;