Skip to content

Instantly share code, notes, and snippets.

@TPei
Forked from artizirk/doodle.py
Created May 8, 2013 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TPei/5538509 to your computer and use it in GitHub Desktop.
Save TPei/5538509 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#LICENSE: WTFPL
#DEPENDS: on this cool font from http://asdasd.rpg.fi/~svo/glasstty/
#TODO: port to Python3
from time import sleep
from sys import stdout
anim = ["|", "/", "-", "\\"]
while True:
for c in anim:
print "Loading (0 %)", c, "\r",
stdout.flush()
sleep(0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment