changeset 6:15620df00023 draft

Require to hit enter at the end of each command to actually execute it
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 25 Sep 2013 14:01:28 -0400
parents f5a63edf4c98
children 1fb152119488
files sh-replay
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sh-replay
+++ b/sh-replay
@@ -88,6 +88,12 @@
 
             subprocess.call(["/bin/bash", "-l", "/tmp/cmd"])
 
+    while True:
+        key = getch()
+        if ord(key) == 13:
+            sys.stdout.write("\n")
+            sys.stdout.flush()
+            break
 if __name__ == "__main__":
     main()