From e85ad109535cbb478ad49d510d10d33a794f631a Mon Sep 17 00:00:00 2001 From: Michael Pang Date: Mon, 9 Dec 2019 09:43:49 -0500 Subject: [PATCH] windows compat removes termios --- play.py | 3 +-- play_dm.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/play.py b/play.py index 211efcd6..b42d5afd 100644 --- a/play.py +++ b/play.py @@ -1,7 +1,6 @@ from story.story_manager import * from generator.gpt2.gpt2_generator import * from story.utils import * -from termios import tcflush, TCIFLUSH import time, sys, os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" @@ -93,7 +92,7 @@ def play_aidungeon_2(): print("\n") console_print(str(story_manager.story)) while True: - tcflush(sys.stdin, TCIFLUSH) + sys.stdin.flush() action = input("> ") if action == "restart": rating = input("Please rate the story quality from 1-10: ") diff --git a/play_dm.py b/play_dm.py index abcacd1c..59758e2f 100644 --- a/play_dm.py +++ b/play_dm.py @@ -2,7 +2,6 @@ from generator.human_dm import * from generator.gpt2.gpt2_generator import * from story.utils import * -from termios import tcflush, TCIFLUSH from play import * import time, sys, os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"