Display a colourful Progress Bar with text.
The Progress Bar can be used to display the progress of a Read, Write or Net operation. It may look like this:
The Progress Bar can be used in three ways, depending on what's expected.
progress_new(0)
progress_update(n,-1)
– records/bytes so farprogress_new(n)
– number of records/bytesprogress_update(n,-1)
– records/bytes so farprogress_new(0)
progress_update(n,pc)
– records/bytes so far, percentageThe frequency of screen updates can be configured. For each variable, a value of 0 means show every update.
$net_inc
– Update after this many KB sent/received$read_inc
– Update after this many records read$write_inc
– Update after this many records writtenAdditionally,
$time_inc
- Frequency of progress bar updates (milliseconds)File | Description |
---|---|
progress/config.c | Config used by the Progress Bar |
progress/progress.c | Progress Bar |
progress/wdata.c | Progress Bar Window Data |
progress/window.c | Progress Bar Window |