Skip to content

Instantly share code, notes, and snippets.

@henrik
Last active December 4, 2020 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henrik/b950bfd7fa432eacd902 to your computer and use it in GitHub Desktop.
Save henrik/b950bfd7fa432eacd902 to your computer and use it in GitHub Desktop.
IO.puts "My progress:"
1..100 |> Enum.each fn (i) ->
IO.write "\r[#{String.duplicate "=", i}] #{i} %"
:timer.sleep 25
end
IO.puts "\nDone!"
@henrik
Copy link
Author

henrik commented Sep 20, 2015

Fleshed this out into a lib: https://github.com/henrik/progress_bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment