From 47da8f77f27174740c20c1cef99daac15f0bf9e8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 8 Nov 2019 06:22:05 -0500 Subject: VPA should not be restricted to the scroll region since it is absolute positioning --- tests/scroll.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/scroll.rs') diff --git a/tests/scroll.rs b/tests/scroll.rs index b7f3df9..1aa9377 100644 --- a/tests/scroll.rs +++ b/tests/scroll.rs @@ -29,6 +29,10 @@ fn scroll_regions() { assert_eq!(parser.screen().contents(), "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n\n\n15\n16\n17\n18\n21\n22\n23\n24"); parser.process(b"\x1b[10;50H\x1bM"); assert_eq!(parser.screen().contents(), "1\n2\n3\n4\n5\n6\n7\n8\n9\n\n10\n11\n12\n13\n14\n\n\n15\n16\n17\n21\n22\n23\n24"); + + assert_eq!(parser.screen().cursor_position(), (9, 49)); + parser.process(b"\x1b[23d"); + assert_eq!(parser.screen().cursor_position(), (22, 49)); } #[test] -- cgit v1.2.3-54-g00ecf