Created
September 29, 2016 13:16
-
-
Save jaynetics/74bbd87e8e3324ae90029e92babc4593 to your computer and use it in GitHub Desktop.
print a progress animation in the style of the heroku cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = %w(⣾ ⣽ ⣻ ⢿ ⡿ ⣟ ⣯ ⣷) | |
loop { print a.rotate!.first; sleep 0.08; print "\b" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment