Unnamed repository; edit this file 'description' to name the repository.
clear terminal after switching to alternate screen
when using helix over mosh, the screen doesn't get cleared and characters get left all over the place until they are overwritten. with this change, the screen gets properly cleared as soon as helix starts
Rose Hudson 2022-04-04
parent 3fc4ea2 · commit f8c83f9
-rw-r--r--helix-term/src/application.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index ddf9e8d6..bc5f3bd7 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -683,6 +683,7 @@ impl Application {
terminal::enable_raw_mode()?;
let mut stdout = stdout();
execute!(stdout, terminal::EnterAlternateScreen)?;
+ execute!(stdout, terminal::Clear(terminal::ClearType::All))?;
if self.config.load().editor.mouse {
execute!(stdout, EnableMouseCapture)?;
}