aboutsummaryrefslogtreecommitdiffstats
path: root/tests/scroll.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-03 14:48:09 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-03 15:50:45 -0500
commitb7ab7295dcb5e4252acc25aee7d4261ac9cbd60f (patch)
treeeedd82f7df37ad41617e4d4bf565073536d0b41c /tests/scroll.rs
parentd79e96ca09562b07d40fc39d14938967ab908a64 (diff)
downloadvt100-rust-b7ab7295dcb5e4252acc25aee7d4261ac9cbd60f.tar.gz
vt100-rust-b7ab7295dcb5e4252acc25aee7d4261ac9cbd60f.zip
more tests
Diffstat (limited to 'tests/scroll.rs')
-rw-r--r--tests/scroll.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scroll.rs b/tests/scroll.rs
index 6a4bd83..e7f0e7f 100644
--- a/tests/scroll.rs
+++ b/tests/scroll.rs
@@ -52,4 +52,13 @@ fn origin_mode() {
screen.process(b"\x1b[10;50H");
assert_eq!(screen.cursor_position(), (9, 49));
+
+ screen.process(b"\x1b[?6h\x1b[?47h\x1b[6;16r\x1b[H");
+ assert_eq!(screen.cursor_position(), (0, 0));
+
+ screen.process(b"\x1b[?6h");
+ assert_eq!(screen.cursor_position(), (5, 0));
+
+ screen.process(b"\x1b[?47l\x1b[H");
+ assert_eq!(screen.cursor_position(), (4, 0));
}