zenity 3.0.1

100+ spinner animations and Progress Bars and Support for Multiple Animations at Once
Documentation

progress bar

multiline preview

Do you often find yourself gazing into the void of your terminal,
wondering if your computer has decided to take a coffee break without notifying you?

100+ predefined animations

Spinner ProgressBar

How to Use?

It's as easy as pie (or maybe even easier, depending on your pie-making skills)!
Follow these simple steps:

cargo add zenity
// example/basic.rs

use std::thread::sleep;
use std::time::Duration;
use zenity::spinner::MultiSpinner;

fn main() {
    // create a LoadingAnimation instance using one of the predefined animations
    let spinner = MultiSpinner::default();
    sleep(Duration::from_secs(5));

    // optional:
    spinner.set_text(&spinner.get_last(), "  Loading...".to_string()); // sets the text to "Loading..."

    sleep(Duration::from_secs(500));
    // `loading_animation` will run out of scope now and get dropped,
    // thus the animation will stop and remove itself from the console
}

check out the examples for more

NOTE:

Disclaimer

Now, we won't promise you that cli_loading_magic will solve all your problems.
We can't guarantee it won't crash your terminal or cause your computer to sprout legs and walk away in protest.

But hey, life's an adventure, right?
Embrace the chaos, enjoy the ride, and remember: if all else fails, there's always
Ctrl+C.

Contributing

Contributions, bug reports, feature requests, and suggestions are all welcome!

If you encounter any issues or have ideas for improvements, please don't hesitate to open an issue on GitHub.
Pull requests are also highly appreciated.
If you find this project helpful or enjoyable, consider giving it a star on GitHub.

Thank you for your interest and contributions!

Credits

This project wouldn't have been possible without the amazing work of the following projects:

Animations

These projects not only provided delightful animations but also spared me from the arduous task of creating frames myself

Documentation

Dependencies

License

This project is licensed under the DWFYW License.

For more information, see the LICENSE file.