Created
October 20, 2016 12:46
-
-
Save oogali/f52f2812310d79ad4d08ae9a1804bcfe to your computer and use it in GitHub Desktop.
Super simple ASCII spinner
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
#!/usr/bin/env ruby | |
segments = %w( / - \\ | ) | |
20.times do | |
segments.each do |segment| | |
print segment | |
sleep 0.1 | |
print "\r" | |
end | |
end | |
puts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment