Skip to content

Instantly share code, notes, and snippets.

@pyrsmk
Created July 2, 2020 08:36
Show Gist options
  • Save pyrsmk/5fb871ea23ef42c59643b46d04d214b2 to your computer and use it in GitHub Desktop.
Save pyrsmk/5fb871ea23ef42c59643b46d04d214b2 to your computer and use it in GitHub Desktop.
A fancy dots loader
def fancy_loader(current, total)
glyph = "⠹⠼⠶⠧⠏⠛"[(Time.now.to_f * 10).to_i % 6]
print "\r#{glyph} #{current}/#{total}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment