Implement DECSTBM

This commit is contained in:
Kovid Goyal
2016-11-17 11:13:28 +05:30
parent 586304ad6c
commit 03fd30b4f4
4 changed files with 26 additions and 0 deletions

View File

@@ -116,3 +116,7 @@ class TestScreen(BaseTest):
c.clear()
pb('\033[6n', ('report_device_status', 6, 0))
self.ae(c.wtcbuf, b'\033[2;1R')
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))
self.ae(s.margin_top, 0), self.ae(s.margin_bottom, 4)