Data Fields | |
| char | left |
| char | right |
| char | empty |
| char | fill |
| char * | title |
| unsigned short | width |
| unsigned short | barst |
| unsigned short | baren |
| long | min |
| long | max |
| long | cur |
| double | starttime |
| double | nextshow |
| double | interval |
| double | freezetime |
| unsigned | has_time: 1 |
| unsigned | has_pct: 1 |
| unsigned | has_bar: 1 |
| unsigned | has_of: 1 |
| unsigned | has_title: 1 |
| unsigned | has_frsec: 1 |
| unsigned | is_frozen: 1 |
| unsigned | debugging: 1 |
| unsigned | has_sub: 1 |
| FILE * | dlog |
| long | submin |
| long | submax |
| long | subcur |
| double | substarttime |
| char | subchar |
| char * | barstr |
This structure contains all the information we need to know about each progress bar. For compactness, the boolean flags are kept in a bit field.
| unsigned short ProgressInfo_struct::baren |
where the actual bar ends on the line.
| unsigned short ProgressInfo_struct::barst |
where the actual bar starts.
Temporary buffer for writing bars.
The current bar value. This can range outside min and max, but the bar will be hard locked to one extreme or the other.
| unsigned ProgressInfo_struct::debugging |
Are we (currently) in debugging?
The file to write debugging logs to.
the character used for empty space in the bar.
the character used for filled space in the bar.
The time at which this object was frozen, if any.
| unsigned ProgressInfo_struct::has_bar |
Do we display the bar?
| unsigned ProgressInfo_struct::has_frsec |
Do we display fractional seconds?
| unsigned ProgressInfo_struct::has_of |
Do we display 'cur of max'?
| unsigned ProgressInfo_struct::has_pct |
Do we display the percentage completed?
| unsigned ProgressInfo_struct::has_sub |
Do we have a sub-bar to display?
| unsigned ProgressInfo_struct::has_time |
Do we display the time?
| unsigned ProgressInfo_struct::has_title |
Do we display the title in the bar?
The number of seconds between each showing.
| unsigned ProgressInfo_struct::is_frozen |
Are we currently frozen?
the character to display at the left of the bar.
The maximum value of the bar: 100%
The minimum value of the bar: 0%
The time at which the bar should next be shown.
the character to display at the right of the bar.
The time we created the bar.
The character to display at the position of the sub-bar.
The current sub-bar value.
The maximum sub-bar value.
The minimum sub-bar value.
When we started this sub-bar.
| unsigned short ProgressInfo_struct::width |
the bar's total width in characters.
1.4.7