progress

thread safe progress bar and spinner library
git clone git://brookjeynes.dev/bjeynes/progress.git
Log | Files | Refs | README | LICENSE

DateCommit messageAuthorFiles+-
2026-06-05 00:44fix: delete old readme (oops)brookjeynes1+0-61
2026-06-04 21:51docs: update readme and add example gif in repobrookjeynes2+56-0
2026-04-27 00:37feat: add multibar (#3)pepe7+238-4
2026-04-22 01:26chore: update changelogbrookjeynes1+7-0
2026-04-22 01:17fix: extra_front_chars not handling custom 2width charactersbrookjeynes1+5-4
2026-04-22 01:11refactor(spinner): update PredefinedSymbols namespace from enum to structbrookjeynes1+1-1
2026-04-22 01:09refactor(bar): refactor colour and bg_colour usagebrookjeynes2+18-28
2026-04-22 00:58fix: unchecked usize subtractionbrookjeynes1+4-1
2026-04-22 00:51fix: double clear() in Spinner when completion_character and clear_on_finish are both setbrookjeynes1+0-2
2026-04-22 00:48fix: render race and redundant width calculationbrookjeynes2+6-6
2026-04-21 23:55feat: update library from zig v0.14.0 -> v0.16.0brookjeynes12+144-134
2025-03-25 21:27docs: added changelogBrookJeynes1+39-0
2025-03-25 21:27chore: Update project to Zig v0.14.0BrookJeynes5+18-13
2025-01-09 11:05feat: added the ability to colour progress bar. feat: added option to show background character for progress bar. chore: updated version number. chore: updated examples to showcase new colour options. refactor: renamed escape_codes.zig to ansi-term.zig and added correct copyright attributionBrookJeynes6+174-48
2024-10-28 01:01Increment minor version number from 1.0.0 to 1.1.0BrookJeynes1+1-1
2024-10-28 00:20Progress bar now supports u21 ascii characters - Updated bar/complex.zig example to showcase this.BrookJeynes3+33-14
2024-09-06 23:33Added new `updateDescriptionNewline` to spinner - Added new `completionCharacter` config. This character, if defined, gets printed instead of the spinner symbol on `Spinner.finish()`. - `updateDescriptionNewline` allows you to now retain the previous spinner symbol / description on the previous line and start a new task on the next. This goes hand in hand with the new `completionCharacter` config. - Updated casing from `update_description()` to `updateDescription()`.BrookJeynes3+46-7
2024-08-20 10:42Update doc strings to make render functionality for spinners more obviousBrookJeynes1+1-1
2024-08-20 08:06Update and rename README to README.mdBrook Jeynes2+57-59
2024-08-18 11:17Officially version 1.0.0!! - Added spinners! Check out `examples/spinner` for api usage or check the docs `zig build docs`. - Renamed `progress.zig` to `bar.zig`. This change came from the need of having two progress variants, `bar.zig -> Bar` and `spinner.zig -> Spinner`. - Added `Bar.isCurrent()` as a thread safe way of checking the current progress of a progress bar. - Updated and split up examples, `examples/bar` and `examples/spinner`. - Updated `build.zig` to allow running both spinner and bar examples, e.g. `zig build run-bar-complex` vs `zig build run-spinner-complex`. - Updated `README` with new examples. - Updated docstrings in `bar.zig` - `Bar.finish()` can now error. This was always the intent but I missed a `!`... whoops. This is now fixed.BrookJeynes15+486-289
2024-08-13 02:58update READMEBrookJeynes1+1-1
2024-08-13 02:54increment versionBrookJeynes1+1-1
2024-08-13 00:31Added `width` property to config - You can now specify the `width` of the progress bar. - Calls to `render()` will error if the width of the terminal or provided width is too small. - Updated complex example to showcase new width property. - Updated docstrings.BrookJeynes2+31-17
2024-08-12 23:43Removed the need for try/catching certain methods - Setting `max_progress` to 0 will no longer throw an error. - `add()` no longer explicitly errors. - `set()` no longer explicitly errors. Setting the bar to a larger number than `max_progress` will set `current_progress` to `max_progress` - Updated doc strings. - Updated examples.BrookJeynes4+14-16
2024-08-09 07:05update readme with latest exampleBrook J1+1-1
2024-08-09 07:04Merge branch 'main' of github.com:BrookJeynes/progressBrook J0+0-0
2024-08-09 07:04update version numberBrook J1+1-1
2024-08-09 06:58`add()` no longer calls render - `render()` must now be called manually. - `render()` is now thread-safe. - Added new config options, `write_newline_on_finish` and `clear_on_finish`. - Fixed issue where progress bar would finish but not restore cursor. - Updated examples to call `render()`. - Renamed `finish()` to `isFinished()`. - Added private attribute `finished` to internally track a finished state. This is helpful when dealing with threaded calls to render. - Updated doc comments. - Made `clear()` public. Use this when you want to manually clear the progress bar. Note that this is different to `reset()` which resets the bar but does not clear the line. - Fixed issue where `set()` was not thread safe.Brook J6+63-24
2024-08-08 21:55Rename README.md to READMEBrook Jeynes1+0-0
2024-08-08 21:54Rename README to README.mdBrook Jeynes1+0-0
2024-08-08 14:14Update `render` docstringBrook J1+1-1
2024-08-08 14:09Create LICENSEBrook Jeynes1+21-0
2024-08-08 14:090.1.0 releaseBrook J10+445-0