package terminal

  1. Overview
  2. Docs
Basic utilities for interacting with terminals

Install

Dune Dependency

Authors

Maintainers

Sources

terminal-0.2.0.tbz
sha256=7a92f6aede3d5010a30e6e47ccbc8380cc5bece8ac95c508323eb25272e6ddd3
sha512=a2ccea467e2d0e419b569992102bd2c43ff97b47f7f8413ee8fbe775ce369a80ff11e0a8fd450ebf1776f7c65baf2482076a120318c9d818488ceba0b9196639

CHANGES.md.html

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.

OCaml

Innovation. Community. Security.