This is just a simple loading bar that scales to the size of your terminal and has the ability to print a message
At this current version, there is a single function: drawbar Arguments: percentage, message, and messagebefore
Percentage is a 32 bit float(f32) (Usually 0-100) Message is a string(str) that can be any length Message_before is a boolean(bool) that determines if you want the message while loading to be before or after the bar text
To use: Do all the stuff you normally would to add a package to cargo. The current version is 1.0.1
Example:
use rbar::draw_bar;
fn main() { for i in 0..101 { draw_bar(i, "Loading...", False); } }