# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1380132088 14400 # Node ID 15620df00023f4862f225609bf57cfdbd4843635 # Parent f5a63edf4c9819d6f92be744d3a6f89ee1653096 Require to hit enter at the end of each command to actually execute it diff --git a/sh-replay b/sh-replay --- 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()