Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active March 23, 2021 14:00
Show Gist options
  • Save gmolveau/908229a6c474f7f473046140be54a030 to your computer and use it in GitHub Desktop.
Save gmolveau/908229a6c474f7f473046140be54a030 to your computer and use it in GitHub Desktop.
python3 move cursor to beginning of line terminal and print
# https://stackoverflow.com/a/7715690
# try it on : https://repl.it/languages/python3
# print('ok', end='\r ', flush=True)
for i in range(100):
print(f'\t string {i}', end='\r ', flush=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment