progress-d ~master
A simple progress bar library.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
progress-d
A simple progress bar library implemented in D lang.
Example
import std.stdio;
import std.datetime;
import core.thread;
import progress;
void main(string[] args) {
size_t iteration = 100;
Progress p = new Progress(iteration);
p.title = "Downloading";
for(int i = 0; i < iteration; i++) {
p.next();
Thread.sleep(dur!("msecs")(80));
}
writeln();
}
Downloading 41% |ooooooooooooooooo | ETA 00:00:04
- ~master released 9 years ago
- kazoo04/progress-d
- github.com/kazoo04/progress-d
- MIT license
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2015-May-29 ~master 2015-May-29 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
204 downloads total
-
- Score:
- 1.2
- Short URL:
- progress-d.dub.pm