Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import time
- def up():
- sys.stdout.write("\033[F")
- def printChar(c):
- sys.stdout.write('\b') #Write a backspace
- sys.stdout.write(c)
- sys.stdout.flush() #force the print NOW (before the next print)
- time.sleep(.1)
- chars = ["|", "/", "-", "\\", "|", "/", "-", "\\"]
- for x in range (1,100):
- for c in chars:
- printChar(c)
Add Comment
Please, Sign In to add comment