Clear screen properly on start
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m40s

This commit is contained in:
Dreaded_X 2025-04-16 16:41:15 +02:00
parent eb09be3647
commit 7f50aed93c
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -1,5 +1,5 @@
use crossterm::execute;
use crossterm::terminal::{EnterAlternateScreen, LeaveAlternateScreen};
use crossterm::terminal::{Clear, ClearType, EnterAlternateScreen, LeaveAlternateScreen};
use russh::ChannelId;
use russh::server::Handle;
use tokio::sync::mpsc::{UnboundedSender, unbounded_channel};
@ -34,6 +34,7 @@ impl TerminalHandle {
};
execute!(terminal_handle, EnterAlternateScreen)?;
execute!(terminal_handle, Clear(ClearType::All))?;
Ok(terminal_handle)
}