Also leave alt buffer on reset

This commit is contained in:
Félix Saparelli 2021-09-04 02:00:57 +12:00
parent 4043ed34ae
commit e5fcc6553e
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 4 additions and 3 deletions

View File

@ -160,9 +160,9 @@ pub enum Outcome {
/// Reset the (terminal) screen. /// Reset the (terminal) screen.
/// ///
/// This invokes: [`WindowsCooked`][ClearScreen::WindowsCooked], /// This invokes (in order): [`WindowsCooked`][ClearScreen::WindowsCooked],
/// [`WindowsVt`][ClearScreen::WindowsVt], [`VtWellDone`][ClearScreen::VtWellDone], /// [`WindowsVt`][ClearScreen::WindowsVt], [`VtLeaveAlt`][ClearScreen::VtLeaveAlt],
/// and [the default][ClearScreen::default()], in this order. /// [`VtWellDone`][ClearScreen::VtWellDone], and [the default][ClearScreen::default()].
Reset, Reset,
/// Exit watchexec. /// Exit watchexec.
@ -403,6 +403,7 @@ async fn apply_outcome(
for cs in [ for cs in [
ClearScreen::WindowsCooked, ClearScreen::WindowsCooked,
ClearScreen::WindowsVt, ClearScreen::WindowsVt,
ClearScreen::VtLeaveAlt,
ClearScreen::VtWellDone, ClearScreen::VtWellDone,
ClearScreen::default(), ClearScreen::default(),
] { ] {