From f8c83f98859fd618980141eb95e7927dcdf074d7 Mon Sep 17 00:00:00 2001 From: Rose Hudson Date: Sun, 3 Apr 2022 16:02:32 +0100 Subject: [PATCH] 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 --- helix-term/src/application.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index ddf9e8d6d..bc5f3bd77 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)?; }