Skip to content

Instantly share code, notes, and snippets.

@nerdinand
Created February 21, 2017 12:25
Show Gist options
  • Save nerdinand/915cb86a85b823e1b32532a1901478e7 to your computer and use it in GitHub Desktop.
Save nerdinand/915cb86a85b823e1b32532a1901478e7 to your computer and use it in GitHub Desktop.
ASCII art indeterminate loading spinner
a = ['-', '/', '|', '\\']
loop do
print "\r#{a.rotate!.first}"
sleep 0.1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment