Created
July 24, 2018 00:01
-
-
Save phi-line/865a62b53c28aba2ada490b68d8932ef to your computer and use it in GitHub Desktop.
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
| def print_c(message): | |
| """ | |
| Clears last carriage returned line and writes a new one | |
| :param message: (str) | |
| :return: None | |
| """ | |
| sys.stdout.write('\x1b[2K') | |
| sys.stdout.write(message) | |
| sys.stdout.flush() | |
| print_c(f"Hello!\r") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment