A simple progress bar in the terminal


Version on this page:
LTS Haskell 22.23:0.4.2
Stackage Nightly 2024-05-24:0.4.2
Latest on Hackage:0.4.2

See all snapshots terminal-progress-bar appears in

BSD-3-Clause licensed and maintained by Roel van Dijk
This version can be pinned in stack with:terminal-progress-bar-,2748

Module documentation for

A progress bar is used to convey the progress of a task. This package implements a very simple textual progress bar.

See the module System.ProgressBar on how to use the progress bar or build the package with the -fexample flag for a small example program.

The animated progress bar depends entirely on the interpretation of the carriage return character ('\r'). If your terminal interprets it as something else then "move cursor to beginning of line", the animation won't work.

Note: Due to a bug in "cabal haddock" you will have to manually uncomment the example section in the cabal file. But uncommenting that section will result in "cabal haddock" failing.