Update vcsaDriver.py

This commit is contained in:
chrys 2019-08-22 09:32:27 +02:00 committed by GitHub
parent a54e053f91
commit c3ab4fabcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,8 +189,9 @@ class driver(screenDriver):
} }
eventData['text'], eventData['attributes'] =\ eventData['text'], eventData['attributes'] =\
self.autoDecodeVCSA(vcsaContent[4:], eventData['lines'], eventData['columns']) self.autoDecodeVCSA(vcsaContent[4:], eventData['lines'], eventData['columns'])
if vcsuContent != None: # VCSU seems to give b' ' instead of b'\x00\x00\x00' (tsp), deactivated until its fixed
eventData['text'] = screen_utils.insertNewlines(vcsuContent.decode('UTF-32', 'replace'), eventData['columns']) #if vcsuContent != None:
# eventData['text'] = screen_utils.insertNewlines(vcsuContent.decode('UTF-32', 'replace'), eventData['columns'])
return eventData.copy() return eventData.copy()
def updateCharMap(self, screen): def updateCharMap(self, screen):
self.charmap = {} self.charmap = {}