{"repo":"JustAman62/progress_bar","free":true,"listed":false,"github":"https://github.com/JustAman62/progress_bar","clone":"git clone https://github.com/JustAman62/progress_bar.git","description":"Command-line progress bars and spinners for Elixir.","language":"Elixir","stars":337,"topics":["spinners","spinner","progress-bar","progressbar","terminal","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"ProgressBar for Elixir Command-line progress bars and spinners. Usage Examples Installation License Credits Usage You can render: progress bars, indeterminate bars that animate but don't indicate the current progress, and indeterminate spinners. Do you have a use case not listed below? Please open an issue or pull request! Progress bars Specify the current value and the total value, and a bar will be rendered to STDOUT. Output: ================================== 67% Call the function again and it will overwrite the previous bar with the new value: Output: ================================================== 100% This basically works by printing \"\\r===…\" each time, without a newline. The text cursor will return to the beginning of the line and overwrite the previous value. When the bar becomes full, a newline is automatically printed, so any subsequent output gets its own line. It's up to you to re-render the bar when something changes. Here's a trivial example of an animated progress bar: Width The bar will automatically set its width to fit the terminal. If the terminal width can't be determined automatically, an 80 column width will be assumed. If you really want to, you may specify an explicit terminal column width to fit inside: Even with a wide terminal, note that the bar proper maxes out at 100 characters wide (one per percentage point) and will not go wider. Customize format Replace the bar , blank , left or right values. Output: …XXXXXXXXX...) 97% bar and blank don't ha","default_branch":null,"files":null,"tree":[],"storefront":"/r/JustAman62","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JustAman62/progress_bar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}