Shellminator V3.0.1
Simple Terminal
|
In this example, weβll customize the progress bar we created earlier.
First, itβs always nice to display some custom text alongside the progress bar:
If the process takes a while, it might be useful to show how long it has been running or even estimate how much time is left:
The setFormat method takes a format string where each letter represents a specific function. Here are the available options:
s
β Seconds since the process started m
β Minutes since the process started t
β Time elapsed since the process started [mm:ss]
r
β Estimated remaining time [mm:ss]
SPACE
β Prints a blank space |
β Prints a vertical separator For example, if you want to display the elapsed time and the estimated remaining time, separated by a vertical line, use:
You can also customize the progress bar color: