From 6d5c4cb5f2feee45383368b5851ecd87364ceb39 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 20 Aug 2019 11:42:30 +0200 Subject: [PATCH] Update ptyDriver.py --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index 4e1f9de0..522325f4 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -4,7 +4,8 @@ # Fenrir TTY screen reader # By Chrys, Storm Dragon, and contributers. -import os, struct, sys, pty, tty, termios, shlex, signal, select, pyte, time, fcntl ,getpass +import os, struct, sys, pty, tty, termios, shlex, signal, pyte, time, fcntl ,getpass +from select import select from fenrirscreenreader.core import debug from fenrirscreenreader.core.eventData import fenrirEventType from fenrirscreenreader.core.screenDriver import screenDriver @@ -164,7 +165,7 @@ class driver(screenDriver): self.terminal.resize(lines, columns) fdList = [sys.stdin, self.p_out, self.signalPipe[0]] while active.value: - r, _, _ = select.select(fdList, [], [], 1) + r, _, _ = select(fdList, [], [], 1) # none if r == []: continue