From c3ab4fabcb53b5b64642c94e8a3011b48fb9aec3 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 22 Aug 2019 09:32:27 +0200 Subject: [PATCH] Update vcsaDriver.py --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index 117f2d89..bf51d6e6 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -189,8 +189,9 @@ class driver(screenDriver): } eventData['text'], eventData['attributes'] =\ self.autoDecodeVCSA(vcsaContent[4:], eventData['lines'], eventData['columns']) - if vcsuContent != None: - eventData['text'] = screen_utils.insertNewlines(vcsuContent.decode('UTF-32', 'replace'), eventData['columns']) + # VCSU seems to give b' ' instead of b'\x00\x00\x00' (tsp), deactivated until its fixed + #if vcsuContent != None: + # eventData['text'] = screen_utils.insertNewlines(vcsuContent.decode('UTF-32', 'replace'), eventData['columns']) return eventData.copy() def updateCharMap(self, screen): self.charmap = {}