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

doc/progress.engine/Progress_engine/Make/Config/index.html

Module Make.ConfigSource

Configuration for progress bar rendering.

Sourcetype t
Sourceval v : ?ppf:Format.formatter -> ?hide_cursor:bool -> ?persistent:bool -> ?max_width:int option -> ?min_interval:Duration.t option -> unit -> t
  • ppf: the formatter to use for rendering. Defaults to Format.err_formatter.
  • hide_cursor: whether or not to hide the terminal cursor (using the DECTCEM ANSI escape codes) during progress bar rendering. Defaults to true.
  • persistent: whether or not to retain the final progress bar display in the terminal after rendering has finished. Defaults to true.
  • max_width: an optional fixed upper bound on the size of a progress bar (in addition to the one by the terminal width). Defaults to None.
  • min_interval: the minimum time interval between re-renders of the progress bar display (i.e. a debounce threshold). Defaults to 1/60th of a second.
Sourceval (||) : t -> t -> t

Merge two config values, with settings from the left taking priority. That is, a || b contains the configuration of a, with unset defaults taken from b.

Sourcemodule Default : sig ... end

Provides the default values of each of the config parameters.

OCaml

Innovation. Community. Security.