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
commitf8c83f98859fd618980141eb95e7927dcdf074d7
authorRose Hudson <cv21874@bristol.ac.uk>
dateSun 3 Apr 2022, 16:02 (5 years ago)
parent3fc4ea2
helix-term/src/application.rs+1
@@ -683,6 +683,7 @@ impl Application {
683683 terminal::enable_raw_mode()?;
684684 let mut stdout = stdout();
685685 execute!(stdout, terminal::EnterAlternateScreen)?;
686+ execute!(stdout, terminal::Clear(terminal::ClearType::All))?;
686687 if self.config.load().editor.mouse {
687688 execute!(stdout, EnableMouseCapture)?;
688689 }