Clear screen properly on start
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m40s
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m40s
This commit is contained in:
parent
eb09be3647
commit
7f50aed93c
|
@ -1,5 +1,5 @@
|
||||||
use crossterm::execute;
|
use crossterm::execute;
|
||||||
use crossterm::terminal::{EnterAlternateScreen, LeaveAlternateScreen};
|
use crossterm::terminal::{Clear, ClearType, EnterAlternateScreen, LeaveAlternateScreen};
|
||||||
use russh::ChannelId;
|
use russh::ChannelId;
|
||||||
use russh::server::Handle;
|
use russh::server::Handle;
|
||||||
use tokio::sync::mpsc::{UnboundedSender, unbounded_channel};
|
use tokio::sync::mpsc::{UnboundedSender, unbounded_channel};
|
||||||
|
@ -34,6 +34,7 @@ impl TerminalHandle {
|
||||||
};
|
};
|
||||||
|
|
||||||
execute!(terminal_handle, EnterAlternateScreen)?;
|
execute!(terminal_handle, EnterAlternateScreen)?;
|
||||||
|
execute!(terminal_handle, Clear(ClearType::All))?;
|
||||||
|
|
||||||
Ok(terminal_handle)
|
Ok(terminal_handle)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user