changeset 4:91ff6ba9d825 draft

Add a newline after hitting enter
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 25 Sep 2013 13:59:38 -0400
parents ebd9c2539ebd
children f5a63edf4c98
files sh-replay
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sh-replay
+++ b/sh-replay
@@ -74,6 +74,8 @@
         while True:
             key = getch()
             if ord(key) == 13:
+                sys.stdout.write("\n")
+                sys.stdout.flush()
                 break
         if cmd.startswith("cd "):
             cd(cmd[3:])