Implement DECRQM

Also add tests for DECRQM and DECCKM
This commit is contained in:
Kovid Goyal
2017-02-05 16:20:50 +05:30
parent 142c883b0c
commit bb7edb5f8f
4 changed files with 43 additions and 1 deletions

View File

@@ -132,6 +132,13 @@ class TestParser(BaseTest):
c.clear()
pb('\033[6n', ('report_device_status', 6, 0))
self.ae(c.wtcbuf, b'\033[2;1R')
c.clear()
pb('\033[?1$p', ('report_mode_status', 1, 1))
self.ae(c.wtcbuf, b'\033[?1;1$y')
pb('\033[?1l', ('screen_reset_mode', 1, 1))
c.clear()
pb('\033[?1$p', ('report_mode_status', 1, 1))
self.ae(c.wtcbuf, b'\033[?1;2$y')
pb('\033[2;4r', ('screen_set_margins', 2, 4))
self.ae(s.margin_top, 1), self.ae(s.margin_bottom, 3)
pb('\033[r', ('screen_set_margins', 0, 0))