Removing tcpflush call

* I'll accept a few errant EOFErrors to avoid screen tearing/glitching
This commit is contained in:
2Shirt 2019-11-19 18:55:49 -07:00
parent 4dcebdfbf3
commit 9af378ed7c
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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: