Guides
Step-by-step guides for using loaders.zig in your Zig applications.
Getting Started
- Getting Started — install the library, create your first progress bar and spinner, and learn the core concepts (thread modes, rendering, writing output).
Core Concepts
- Thread modes —
.none(manual),.auto(background thread),.external(caller-driven). - Auto-start — bars and spinners start automatically on first update (
setProgress,tick,tickFrame) when left in the.pendingstate. - Templates — every widget renders through the template engine; see Templates for all tokens.
- Writing output — always use
loaders.stdoutWriter(io)(returns a pointer) to write lines after a widget; see Terminal Helpers.
Quick Reference
| Topic | Link |
|---|---|
| Progress Bar | API |
| Spinner | API |
| Block Bar | API |
| Indeterminate | API |
| MultiBar | API |
| BatchRunner | API |
| StepSequence | API |
| Templates & Formatters | API |
| Terminal Helpers | API |
| All examples | Examples |
