diff options
author | Rose Hudson | 2022-04-03 15:02:32 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-04-04 07:41:11 +0000 |
commit | f8c83f98859fd618980141eb95e7927dcdf074d7 (patch) | |
tree | 3799e8302ff9e693d694703b9db172cff95ca5ea | |
parent | 3fc4ea2938a0ee8048176a92c4bbf29aaaf0b853 (diff) |
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
-rw-r--r-- | helix-term/src/application.rs | 1 |
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)?; } |