mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-10 11:40:48 +08:00
windows compat
removes termios
This commit is contained in:
@@ -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: ")
|
||||
|
||||
@@ -2,7 +2,6 @@ from story.story_manager import *
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user