summaryrefslogtreecommitdiffstats
path: root/Lib/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 2a7be43..5f955a7 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -94,6 +94,7 @@ class Cmd:
line = 'EOF'
else:
sys.stdout.write(self.prompt)
+ sys.stdout.flush()
line = sys.stdin.readline()
if not len(line):
line = 'EOF'