This is a simple fast customizable graphic terminal display that shows you the progress of your process in a form of an ascii horizontal bar.
- GNU GCC++11 or newer
Run in your working directory to download
git clone https://github.com/Sergeyir/ProgressBar
Run in the downloaded directory to compile the code for ProgressBar
make
You can check the compilation result by heading to the examples directory by making examples and then running the simplest test executable
make && ./test
You can view the detailed documentation https://sergeyir.github.io/ProgressBar/ (see Classes/Class List/ProgressBar).
If the link is unaccesible you can generate the documentation yourself with doxygen. To do this run while in root of the repository
doxygen
To view the generated html file open html/index.html with any browser or simply run to automaticaly open it on linux
xdg-open html/index.html
You can link the compiled librariy libPBar.so (see Makefile and Makefile.am for reference in the examples directory). Also see examples in examples directory:
- style.cpp - execute, run and try different ProgressBar with different styles.
- possibilities.cpp - shows different ways to use ProgressBar.
- handle_output.cpp - shows how to handle output while ProgressBar is in progress.
- mt.cpp - shows the simplest usage of ProgressBar in multithreaded applications.
- speed.cpp - shows how much time it takes for calling ProgressBar::Print(progress) 1 billion times.