From 65bff1878ff68698da021b4d5aa00d1cfad41d0a Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 6 Jul 2020 19:10:06 +0000 Subject: Fix saved cursor handling This resolves several problems with handling of the saved cursor when switching between primary and alternate screen. Additionally ref-tests are also added for all common interactions to make sure the behavior does not regress. The behavior is based on XTerm's behavior except for interaction with `reset`. XTerm does not reset the alternate screen's saved cursor on `reset`, but VTE does. Since a `reset` should reset as much as possible, Alacritty copies VTE here instead of XTerm. --- alacritty_terminal/tests/ref.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alacritty_terminal/tests/ref.rs') diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 3f415050..9c5bbda5 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -64,6 +64,8 @@ ref_tests! { clear_underline region_scroll_down wrapline_alt_toggle + saved_cursor + saved_cursor_alt } fn read_u8

(path: P) -> Vec -- cgit