progress-d 1.0.0

A simple progress bar library.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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

Authors:Kazuya Gokita

Dependencies: none

Versions:
1.0.0 2015-May-29
~master 2015-May-29
Show all 2 versions
Stats:

statistics are temporarily disabled.