Removing tcpflush call
* I'll accept a few errant EOFErrors to avoid screen tearing/glitching
This commit is contained in:
parent
4dcebdfbf3
commit
9af378ed7c
1 changed files with 0 additions and 9 deletions
|
|
@ -18,12 +18,6 @@ from settings.main import *
|
|||
from settings.tools import *
|
||||
from settings.windows_builds import *
|
||||
from subprocess import CalledProcessError
|
||||
try:
|
||||
from termios import tcflush, TCIOFLUSH
|
||||
except ImportError:
|
||||
if os.name == 'posix':
|
||||
# Not worried about this under Windows
|
||||
raise
|
||||
|
||||
|
||||
# Global variables
|
||||
|
|
@ -113,9 +107,6 @@ def input_text(prompt):
|
|||
prompt += ' '
|
||||
|
||||
while response is None:
|
||||
if os.name == 'posix':
|
||||
# Flush input to (hopefully) avoid EOFError
|
||||
tcflush(sys.stdin, TCIOFLUSH)
|
||||
try:
|
||||
response = input(prompt)
|
||||
except EOFError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue