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.
///
/// This invokes: [`WindowsCooked`][ClearScreen::WindowsCooked],
/// [`WindowsVt`][ClearScreen::WindowsVt], [`VtWellDone`][ClearScreen::VtWellDone],
/// and [the default][ClearScreen::default()], in this order.
/// This invokes (in order): [`WindowsCooked`][ClearScreen::WindowsCooked],
/// [`WindowsVt`][ClearScreen::WindowsVt], [`VtLeaveAlt`][ClearScreen::VtLeaveAlt],
/// [`VtWellDone`][ClearScreen::VtWellDone], and [the default][ClearScreen::default()].
Reset,
/// Exit watchexec.
@ -403,6 +403,7 @@ async fn apply_outcome(
for cs in [
ClearScreen::WindowsCooked,
ClearScreen::WindowsVt,
ClearScreen::VtLeaveAlt,
ClearScreen::VtWellDone,
ClearScreen::default(),
] {