Skip to content

Instantly share code, notes, and snippets.

@jeyraof
Last active August 29, 2015 14:04
Show Gist options
  • Save jeyraof/4eee3007c287e7327f25 to your computer and use it in GitHub Desktop.
Save jeyraof/4eee3007c287e7327f25 to your computer and use it in GitHub Desktop.
indicator
def indicator(message='Processing...' ):
sys.stdout.write(message)
time.sleep(1)
sys.stdout.write('|')
time.sleep(1)
sys.stdout.write('\r/')
time.sleep(1)
sys.stdout.write('\r-')
time.sleep(1)
sys.stdout.write('\r\\')
time.sleep(1)
sys.stdout.write('\r*')
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment