package progress
User-definable progress bars
Install
Dune Dependency
Authors
Maintainers
Sources
progress-0.2.2.tbz
sha256=3341c21923a21cd6b5b5cfa9ec3981f59572c367940fe5e02450533dfb4110b5
sha512=3edbe5ca6ea0bbc678b7dc4abe38bb4c3c4832de0144cc6e0791678712931fbaf2f7141196fca3fdc13a20777851cadcd165bf30c11d92193eecbd8f2d9dbf15
doc/progress.engine/Progress_engine/Make/Config/index.html
Module Make.Config
Source
Configuration for progress bar rendering.
Source
val 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 toFormat.err_formatter
.
hide_cursor
: whether or not to hide the terminal cursor (using theDECTCEM
ANSI escape codes) during progress bar rendering. Defaults totrue
.
persistent
: whether or not to retain the final progress bar display in the terminal after rendering has finished. Defaults totrue
.
max_width
: an optional fixed upper bound on the size of a progress bar (in addition to the one by the terminal width). Defaults toNone
.
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.
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
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>