Update ptyDriver.py
This commit is contained in:
parent
a8603c89d7
commit
6d5c4cb5f2
@ -4,7 +4,8 @@
|
|||||||
# Fenrir TTY screen reader
|
# Fenrir TTY screen reader
|
||||||
# By Chrys, Storm Dragon, and contributers.
|
# 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 import debug
|
||||||
from fenrirscreenreader.core.eventData import fenrirEventType
|
from fenrirscreenreader.core.eventData import fenrirEventType
|
||||||
from fenrirscreenreader.core.screenDriver import screenDriver
|
from fenrirscreenreader.core.screenDriver import screenDriver
|
||||||
@ -164,7 +165,7 @@ class driver(screenDriver):
|
|||||||
self.terminal.resize(lines, columns)
|
self.terminal.resize(lines, columns)
|
||||||
fdList = [sys.stdin, self.p_out, self.signalPipe[0]]
|
fdList = [sys.stdin, self.p_out, self.signalPipe[0]]
|
||||||
while active.value:
|
while active.value:
|
||||||
r, _, _ = select.select(fdList, [], [], 1)
|
r, _, _ = select(fdList, [], [], 1)
|
||||||
# none
|
# none
|
||||||
if r == []:
|
if r == []:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user