Created
March 7, 2018 18:01
-
-
Save nihaals/49df45eb5d9e073889b9e6911cca6e34 to your computer and use it in GitHub Desktop.
Python status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys.stdout as std | |
def update_last_line(text): | |
std.write("\r{}\033[K".format(text)) | |
std.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment