package progress
User-definable progress bars
Install
Dune Dependency
Authors
Maintainers
Sources
progress-0.1.1.tbz
sha256=90c6bec19d014a4c6b0b67006f08bdfcf36981d2176769bebe0ccd75d6785a32
sha512=76a8a8f5979c1d6ba47d28e8c8fc6fa2c4f27073f77749b98f98eaf9c101fdc0f9f76e6463ea8dbea5dbbc69a105908be26c605c8c56ddc1a1a5ccc48db87a5a
doc/progress.unix/Progress_unix/index.html
Module Progress_unix
Source
This module defines Unix-specific extensions to the Progress
library.
It is packaged as the Dune library progress.unix
.
Time-sensitive segments
Displays the time for which the bar has been rendering in MM:SS
form.
Source
val counter :
total:int64 ->
?mode:[ `ASCII | `UTF8 ] ->
?message:string ->
?pp:(int64, int64 Progress.Segment.t) Progress.Units.pp_fixed ->
?width:int ->
?sampling_interval:int ->
unit ->
(int64 -> unit) Progress.t
counter ~total ()
is a progress bar of the form:
<message?> <count?> MM:SS [########..............................] XX%
This is an equivalent of Progress.counter
with an extra stopwatch
segment.
TTY-sensitive renderers
A formatter that is equal to Format.err_formatter
if stdout is a TTY, and is a noop formatter otherwise.
Renderers that use stderr_if_tty
as an output formatter.
Re-exports
Convenient aliases to functions defined in Progress
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page