Parse and ignore SOS codes

Fixes #7184
This commit is contained in:
Kovid Goyal
2024-03-03 08:58:47 +05:30
parent 89108e856f
commit 8fa592d849
3 changed files with 21 additions and 1 deletions

View File

@@ -630,6 +630,7 @@ class TestParser(BaseTest):
pb = partial(self.parse_bytes_dump, s)
pb('a\033_+\\+\033\\bcde', ('draw', 'a'), ('Unrecognized APC code: 0x2b',), ('draw', 'bcde'))
pb('a\033^+\\+\033\\bcde', ('draw', 'a'), ('Unrecognized PM code: 0x2b',), ('draw', 'bcde'))
pb('a\033X+\\+\033\\bcde', ('draw', 'a'), ('Unrecognized SOS code: 0x2b',), ('draw', 'bcde'))
def test_graphics_command(self):
from base64 import standard_b64encode