From 48ab30a37056b35fb2924471dcde06c20fb45e9d Mon Sep 17 00:00:00 2001 From: Chrys Date: Thu, 22 Aug 2019 21:04:58 +0200 Subject: [PATCH] reenable VCSU --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index e90ae6b1..1195676e 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -208,8 +208,8 @@ class driver(screenDriver): eventData['text'], eventData['attributes'] =\ self.autoDecodeVCSA(vcsaContent[4:], eventData['lines'], 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']) + if vcsuContent != None: + eventData['text'] = screen_utils.insertNewlines(vcsuContent.decode('UTF-32', 'replace'), eventData['columns']) return eventData.copy() def updateCharMap(self, screen): self.charmap = {}