From 9af378ed7c60469dea3555b470655f2ac85addc0 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 19 Nov 2019 18:55:49 -0700 Subject: [PATCH] Removing tcpflush call * I'll accept a few errant EOFErrors to avoid screen tearing/glitching --- .bin/Scripts/functions/common.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.bin/Scripts/functions/common.py b/.bin/Scripts/functions/common.py index 4e4d6437..de96b2c3 100644 --- a/.bin/Scripts/functions/common.py +++ b/.bin/Scripts/functions/common.py @@ -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: