• Stars
    star
    141
  • Rank 259,971 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

APT like progress bar

bash_progress_bar

Note: There is now also this python implementation

This script is intended to be sourced by other bash scripts. It will allow those scripts to create a progress bar which does not interfere with the scrolling output of the script. The look and feel for this progress bar is based on the progress bar used by APT.

What makes this progress bar different from the basic terminal progress bars which use carriage return (\r) to overwrite their own line, is that this progress bar does not interfere with the normal output of your script. This makes it very easy to update existing scripts to use this bar without having to worry about the scrolling of your output.

An example can be viewed in test_bar.sh. The actual implementation can be found in progress_bar.sh

Example output: