Created
July 2, 2020 08:12
-
-
Save pyrsmk/d2839d3f2c193d35d7456f72c07c0bbf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
LIST = "⠹⠼⠶⠧⠏⠛" | |
LIGHT = "⢕⡪" | |
SPEED = 1 | |
trap "SIGINT" do | |
exit! | |
end | |
def loader(speed=SPEED, list=LIST) | |
list[(Time.now.to_f * 10 ** speed).to_i % list.length] | |
end | |
loop do | |
print "Loading... #{ loader(1, LIST) }\r" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment