From 76c7ef56df39645cf01574e93e695bf20d29a184 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 3 Mar 2021 07:44:57 -0800 Subject: [PATCH] term: RIS must clear the scrollback closes: #511 --- docs/changelog.md | 1 + term/src/terminalstate.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 62e453e59..d5827148b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -37,6 +37,7 @@ brief notes about them may accumulate here. * New: [window:set_config_overrides](config/lua/window/set_config_overrides.md) method that can be used to override GUI related configuration options on a per-window basis. Click through to see examples of dynamically toggling ligatures and window opacity. [#469](https://github.com/wez/wezterm/issues/469) [#329](https://github.com/wez/wezterm/issues/329) * Fixed: line-based mouse selection (default: triple click) now extends forwards to include wrapped lines. [#466](https://github.com/wez/wezterm/issues/466) * New: introduced [custom_block_glyphs](config/lua/config/custom_block_glyphs.md) option to ensure that block glyphs don't have gaps. [#433](https://github.com/wez/wezterm/issues/433) +* Fixed: the [RIS](https://vt100.net/docs/vt510-rm/RIS) escape wasn't clearing the scrollback. [#511](https://github.com/wez/wezterm/issues/511) ### 20210203-095643-70a364eb diff --git a/term/src/terminalstate.rs b/term/src/terminalstate.rs index 369417e43..7ebffe133 100644 --- a/term/src/terminalstate.rs +++ b/term/src/terminalstate.rs @@ -3096,6 +3096,7 @@ impl<'a> Performer<'a> { self.left_and_right_margins = 0..self.screen().physical_cols; self.screen.activate_primary_screen(); + self.erase_in_display(EraseInDisplay::EraseScrollback); self.erase_in_display(EraseInDisplay::EraseDisplay); }