progress-bar
Terminal progress bar with percentage display. Updates in-place using carriage return, with configurable width and label.
Install
ppm install progress-bar
Usage Example
uses progress_bar;
var bar := Create(500, 'Downloading', 40);
for var i := 1 to 500 do
begin
ProcessItem(i);
Increment(bar, 1);
Sleep(10);
end;
Finish(bar);
// Manual percentage
var bar2 := Create(100, 'Uploading', 30);
Update(bar2, 45); // 45%
Update(bar2, 100);
Finish(bar2);
Features
In-place update with carriage return
Configurable bar width and label
Percentage display
ETA estimation from elapsed time
Increment() and Update() modes