Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Simple Progress Bar

A beautiful, easy to use progress bar for C++ console applications.

API

The progress_bar class uses only the default constructor. In order to create the initial progress bar, call the init() function on your progress_bar instance. Then, as your program runs its operation, call the update() function with an integer value between 0 and 100 to indicate the percentage of the task that has been completed.

progress_bar progress;

progress.init();
progress.update(25);

If you wish to use a colored progress bar, simply pass a valid console color escape sequence as a string into the init() function. The colors class provides shortcuts to the default and most widely available console foreground and background colors.

colors colors;
progress_bar progress;

progress.init(colors.FgBlue);
progress.update(25);

A sample of the progress bar displayed in the standard console foreground colors

Test Program

If you would like to see the library in action, clone the repository and run the run.sh file in the '/examples' directory.

Built using the Windows Subsystem for Linux.

About

A beautiful, easy to use progress bar for C++ console applications.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages