progress.nimThu, Apr 14, 2016
A simple terminal based progress bar for Nim.
Using a progress bar to provide feedback upon the progress of some current action can greatly help with the user interface of your program, with terminals being no different. This package provides an easy to use, customisable progress bar. You can define the width, step, length and the characters to use for the bar’s display upon creation.
This library can be installed using Nimble:
nimble install progress
# os is only needed for `sleep` import progress, os let bar = newProgressBar() bar.start() for i in 1..100: # Do some work sleep(100) bar.increment() bar.finish()