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)