From 41104d4e408683fe18e20a60bdfa00d90e2338a0 Mon Sep 17 00:00:00 2001 From: Chrys Date: Thu, 16 Mar 2023 22:53:28 +0100 Subject: [PATCH] add workaround for newer linux versions --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index aa3bbde9..365653cd 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -34,6 +34,12 @@ class driver(screenDriver): self.bgColorValues = {0: 'black', 1: 'blue', 2: 'green', 3: 'cyan', 4: 'red', 5: 'magenta', 6: 'brown/yellow', 7: 'white'} self.fgColorValues = {0: 'black', 1: 'blue', 2: 'green', 3: 'cyan', 4: 'red', 5: 'magenta', 6: 'brown/yellow', 7: 'light gray', 8: 'dark gray', 9: 'light blue', 10: 'light green', 11: 'light cyan', 12: 'light red', 13: 'light magenta', 14: 'light yellow', 15: 'white'} self.hichar = None + try: + # set workaround for paste clipboard -> injectTextToScreen + os.system('sysctl dev.tty.legacy_tiocsti=1') + except: + pass + try: def initialize(self, environment): self.env = environment self.env['runtime']['attributeManager'].appendDefaultAttributes([