|
textProgressBar
|
This module provides a lightweight, dependency-minimal text progress bar for terminal output. It is designed for long-running loops where periodically printing a single-line progress indicator improves usability without introducing GUI or logging dependencies.
The core API is the TextProgressBar class:
The progress bar is rendered on a single console line using a carriage return (\r) so that repeated updates overwrite the same line. When progress reaches the last step, a newline is printed.
The module includes the following example(s):
Demonstrates basic usage in a tight loop: construct a TextProgressBar, then call TextProgressBar::setProgress "setProgress()" as the loop index advances.
This module is intentionally small and self-contained:
This module does not implement a logger interface and does not define verbosity levels. Output is produced only by explicitly calling TextProgressBar::setProgress "setProgress()".