package progress

  1. Overview
  2. Docs
User-definable progress bars

Install

Dune Dependency

Authors

Maintainers

Sources

terminal-0.2.1.tbz
sha256=7ae7f5c5a2db88107d0b3fd37d5344f066921270a3e74d56dd13457feb9e586e
sha512=3828ac568e447e5f1e59450ee48491c256d8bc77abe234190e14e2db5be7b81f379837083f0eb28ea9572fce2781fd0addd7adc1701947c0b2de9d8319ace042

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.