Display constantly updating information in-place in command-line window using python?

Posted by AndyL on Stack Overflow See other posts from Stack Overflow or by AndyL
Published on 2010-06-07T23:09:40Z Indexed on 2010/06/07 23:22 UTC
Read the original article Hit count: 215

Filed under:
|

I am essentially building a timer. I have a python script that monitors for an event and then prints out the seconds that have elapsed since that event.

Instead of an ugly stream of numbers printed to the command line, I would like to display only the current elapsed time "in-place"-- so that only one number is visible at any given time.

Is there a simple way to do this?

If possible I'd like to use built-in python modules. I'm on Windows, so simpler the better. (E.g. no X11).

© Stack Overflow or respective owner

Related posts about python

Related posts about command-line