Also report the payload for graphics commands

This commit is contained in:
Kovid Goyal
2017-09-26 11:22:14 +05:30
parent 56c2e0c26a
commit 15e03f74f4
2 changed files with 4 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ class TestParser(BaseTest):
k.setdefault(f, 0)
p = k.pop('payload', '').encode('utf-8')
k['payload_sz'] = len(p)
return ('graphics_command', k)
return ('graphics_command', k, p)
def t(cmd, **kw):
pb('\033_G{};{}\033\\'.format(cmd, enc(kw.get('payload', ''))), c(**kw))