package progress

  1. Overview
  2. Docs
User-definable progress bars

Install

Dune Dependency

Authors

Maintainers

Sources

progress-0.3.0.tbz
sha256=3dfd00bd4def773239159b17781d02fdbfd8ea191801681a94aa0a5be1d06b7c
sha512=fd64ff8a819b2db2460c06b7fbd5663e2a1941f9e2d4e9b921a3d5f24509fe3be543521fbe1bb6baedad9f62b579aae933efac3903db03a27385233f5461f09c

CHANGES.md.html

0.3.0 (2024-04-13)

  • Be compatible with MirageOS and remove ocaml_terminal_get_sigwinch (@art-w, #38)

  • Clear all lines in interject_with (@Gbury, #30)

  • Add Display.remove_line (@mbarbin, #26)

  • Fix compilation for OCaml 5.2 (reported by @Gbury, fixed by @dinosaure, #40)

  • Add Display.{pause,resume} (@Gbury, #37)

0.2.2 (2023-05-26)

  • Fix lower bounds on UTF-8 libraries (@craigfe, 42759d5)

  • Fix removed functions in mtime.2.0.0 (@patricoferris, #31)

  • Use actual printer width for elapsed segment (@lsdch, #28)

0.2.1 (2021-06-29)

  • Fix the count segment of Progress.counter (when pp is passed) to show the running total rather than the latest reported value. (#19; @CraigFe, report by @Ngoguey42)

  • Fix Terminal stubs on MacOS. (#13; @CraigFe, report by @Ngoguey42)

  • Fix package tests on Windows. Progress does not yet support the Windows and Cygwin terminals; this is tracked by #16. (#15; @emillon)

0.2.0 (2021-06-26)

Major update of the API, including a number of new features:

  • Rename the Segment module to Line, and improve the set of primitives for progress bar construction significantly. This includes time-sensitive segments (e.g bytes_per_sec, eta) and padding segments (lpad and rpad).

  • Add Progress.interject_with for interleaving logging with rendering, and functions for using Progress with Logs reporters.

  • Add support for adding lines to an ongoing rendering process via Display.

  • Improve the behaviour of the rendering core: handle terminal width changes / respond to user input etc. more cleanly.

  • Add many more examples and general improvements to the documentation.

  • Extract terminal-specific utilities to a new Terminal package.

Also contains a number of smaller fixes:

  • Fix the display of minutes and seconds of Progress.Units.seconds and Progress_unix.counter. (#6, @Ngoguey42)

  • Raise an exception when attempting to run separate render processes simultaneously. (#8, @CraigFe)

0.1.1 (2020-10-13)

  • Rename Progress.with_display to Progress.with_reporters. (#3, @CraigFe)

  • Change the default display mode of progress bars to ASCII rather than UTF8. (#2, @CraigFe)

  • Change Segment.box_dynamic to take a function rather than a reference. (#1, @CraigFe)

  • Fix a bug causing multi-line layouts to occasionally not adapt to terminal size changes. (#1, @CraigFe)

0.1.0 (2020-10-12)

Initial release.