diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-08 06:22:05 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-08 09:51:24 -0500 |
commit | 47da8f77f27174740c20c1cef99daac15f0bf9e8 (patch) | |
tree | 411a68a4d8ee4fc2088dbf6f3dd78c86caf7bc25 /tests | |
parent | 8a609443b4ae06e58e0334751bbdb76e31068d37 (diff) | |
download | vt100-rust-47da8f77f27174740c20c1cef99daac15f0bf9e8.tar.gz vt100-rust-47da8f77f27174740c20c1cef99daac15f0bf9e8.zip |
VPA should not be restricted to the scroll region
since it is absolute positioning
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scroll.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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] |