aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-21 19:32:54 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-21 19:32:54 -0400
commite870260f380504f7763496bc5d81c71a6875da9d (patch)
tree69f58ba83bfd30b6ea8abb817bba3db37203f5d7 /t
parente40908f48b18e483509ca76590d98ebd3ea115f4 (diff)
downloadlibvt100-python-e870260f380504f7763496bc5d81c71a6875da9d.tar.gz
libvt100-python-e870260f380504f7763496bc5d81c71a6875da9d.zip
test ECH
Diffstat (limited to 't')
-rw-r--r--t/csi_test.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/t/csi_test.py b/t/csi_test.py
index 7f020a2..9d3c451 100644
--- a/t/csi_test.py
+++ b/t/csi_test.py
@@ -163,7 +163,7 @@ class CSITest(VT100Test):
self.process("\033[1;2H\033[?K")
assert self.vt.get_string_plaintext(0, 0, 500, 500) == 'f' + ("\n" * 4) + ' bar' + ("\n" * 5) + ' baz' + ("\n" * 15)
- def test_ich_dch(self):
+ def test_ich_dch_ech(self):
assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 24)
self.process("\033[10;10Hfoobar")
@@ -189,6 +189,22 @@ class CSITest(VT100Test):
assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 9) + ' fo' + ("\n" * 15)
assert self.vt.cursor_pos() == (9, 11)
+ self.process("obar")
+ assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 9) + ' foobar' + ("\n" * 15)
+ assert self.vt.cursor_pos() == (9, 15)
+
+ self.process("\033[10;13H\033[X")
+ assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 9) + ' foo ar' + ("\n" * 15)
+ assert self.vt.cursor_pos() == (9, 12)
+
+ self.process("\033[10;11H\033[4X")
+ assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 9) + ' f r' + ("\n" * 15)
+ assert self.vt.cursor_pos() == (9, 10)
+
+ self.process("\033[10;11H\033[400X")
+ assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 9) + ' f' + ("\n" * 15)
+ assert self.vt.cursor_pos() == (9, 10)
+
def test_il_dl(self):
assert self.vt.get_string_plaintext(0, 0, 500, 500) == ("\n" * 24)