Add support for the CSI t escape code to query window and cell sizes

This commit is contained in:
Kovid Goyal
2018-05-28 13:47:42 +05:30
parent 6570565e2d
commit dd20789249
5 changed files with 52 additions and 0 deletions

View File

@@ -160,6 +160,9 @@ class TestParser(BaseTest):
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))
c.clear()
pb('\033[14t', ('screen_report_size', 14))
self.ae(c.wtcbuf, b'\033[4;100;50t')
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)