Examples
Every example is a standalone program in the examples/ directory. Run any example with:
bash
zig build run-<name>Or build all examples at once:
bash
zig build examplesProgress Bars
| Example | Description | Run |
|---|---|---|
| Basic Bar | Minimal 50-step progress bar with percentage | zig build run-01_basic_bar |
| Basic Bar (100) | Standard and unicode-styled 100-step bars | zig build run-basic_bar |
| Styled Bar | Side-by-side comparison of 7 bar styles | zig build run-02_styled_bar |
| Custom Style | Custom BarStyle with = fill, > tip, green color | zig build run-custom_style |
| Themed Bar | Gallery of 9 built-in bar themes | zig build run-themed_bar |
| ETA and Rate | Dynamic ETA, rate, count, and elapsed time | zig build run-eta_and_rate |
| Download Simulation | 50 MB download with byte rate and ETA | zig build run-download_simulation |
| Advanced Options | Decorators, timestamps, colors, responsive width | zig build run-advanced_options |
| Custom Template | Dynamic label changes across 5 phases | zig build run-custom_template |
| Nested Bars | Outer/inner batch progress with MultiBar | zig build run-nested_bars |
Spinners
| Example | Description | Run |
|---|---|---|
| Spinner | Dots, line, and moon spinners with text updates | zig build run-spinner |
| Multi Spinner | 5 concurrent spinners with staggered finish states | zig build run-multi_spinner |
Multi-Progress
| Example | Description | Run |
|---|---|---|
| Multi Progress | 4 concurrent bars with different styles | zig build run-multi_progress |
Utilities
| Example | Description | Run |
|---|---|---|
| Iterator Wrap | Progress bar wrapper for iterators and callbacks | zig build run-iterator_wrap |
| Animations | Showcase all 33 spinner and 18 bar presets | zig build run-animations |
