From a53fe5cbb31c87b2879164cdce9305b0a7388f40 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 29 May 2018 22:51:28 +0200 Subject: [PATCH] make stuf working --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index e3f20343..0e2ec84f 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -80,7 +80,7 @@ class driver(screenDriver): if bytes == b'': raise EOFError # respect timeout but wait a little bit of time to see if something more is here - while screen_utils.hasMore(fd,0.01): + while screen_utils.hasMore(fd,0.001): # exit on stuff like input available if interruptFdList: r, _, _ = select.select(interruptFdList, [], [], 0) @@ -156,7 +156,7 @@ class driver(screenDriver): # output if self.p_out in r: try: - msgBytes = self.readAll(self.p_out.fileno(), timeout=0.05, interruptFdList=[sys.stdin]) + msgBytes = self.readAll(self.p_out.fileno(), timeout=0.02, interruptFdList=[sys.stdin]) except (EOFError, OSError): active.value = False break