Permalink
Browse files

Ensure stdout gets flushed

  • Loading branch information...
1 parent 78853a3 commit 45dc88a0a91d3bd2b1a2b0638ae58ca550c29ffe @andre-d committed Mar 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 emu.py
View
3 emu.py
@@ -24,7 +24,8 @@ def main():
while True:
dt = core.run()
status = "Running at %.2fMhz" % (1.0/dt)
- sys.stdout.write("\r%s\r%s" % (" "*len(status), status))
+ sys.stdout.write("\r%s\r%s" % (" "*(len(status)+3), status))
+ sys.stdout.flush()
while core.is_alive():
pass
for p in plugins:

0 comments on commit 45dc88a

Please sign in to comment.