Skip to content

Instantly share code, notes, and snippets.

@artizirk
Last active December 17, 2015 02:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save artizirk/5537413 to your computer and use it in GitHub Desktop.
Save artizirk/5537413 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