Allow clients to query if the terminal emulator support styled underlines

This commit is contained in:
Kovid Goyal
2017-02-10 16:00:51 +05:30
parent 924172f1ac
commit edab1aebaa
4 changed files with 25 additions and 0 deletions

View File

@@ -139,6 +139,9 @@ class TestParser(BaseTest):
pb('\033[?1l', ('screen_reset_mode', 1, 1))
self.assertFalse(s.cursor_key_mode)
c.clear()
pb('\033[?2016$p', ('report_mode_status', 2016, 1))
self.ae(c.wtcbuf, b'\033[?2016;3$y')
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))