aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/tests/ref.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-07-06 19:10:06 +0000
committerGitHub <noreply@github.com>2020-07-06 19:10:06 +0000
commit65bff1878ff68698da021b4d5aa00d1cfad41d0a (patch)
tree0bf0ae10dd72718ce958bfd199ee973c40adc9f7 /alacritty_terminal/tests/ref.rs
parent72c916ff434e23d44e2a31e6a8d5f7b8ae649008 (diff)
downloadalacritty-65bff1878ff68698da021b4d5aa00d1cfad41d0a.tar.gz
alacritty-65bff1878ff68698da021b4d5aa00d1cfad41d0a.zip
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.
Diffstat (limited to 'alacritty_terminal/tests/ref.rs')
-rw-r--r--alacritty_terminal/tests/ref.rs2
1 files changed, 2 insertions, 0 deletions
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<P>(path: P) -> Vec<u8>