OptionalcharactersCharacters used to render filled and empty cells.
Each character should occupy one terminal cell. Multi-cell or combining
characters can make the visible track wider than width.
OptionalformatFormats the value text appended after the track.
The callback receives the clamped numeric value and its rounded percentage. Returning an empty string leaves the trailing separator in place; callers that need a track-only representation should account for that when composing output.
OptionallabelOptional text rendered before the track.
Dynamic values must be escaped by the caller if the returned string will later be inserted into a Blessed element with tags enabled. The bundled Blessed adapter disables tags.
OptionalmaxUpper bound of the numeric range.
Must be finite and greater than min.
OptionalminLower bound of the numeric range.
Must be finite and lower than max.
Current numeric value.
The value must be finite. Values below min or above max are clamped
before the percentage and formatted value are calculated.
Number of characters reserved for the progress track.
This excludes the optional label, spaces, and formatted value. It must be a positive integer.
Options accepted by renderProgressBar.
The renderer maps
valuefrom the inclusive numeric range defined byminandmaxinto a fixed-width terminal track. Values outside the range are clamped before rendering.Example: Basic percentage bar
Example: Custom range and label