This is PowerBar - The last progressbar-library you‘ll ever need.
Render the actual bar-portion of the PowerBar. The length of the bar is determined from the template. Returns nil if the bar-length would be == 0.
Print the close-template and defuse the exit-hook. Be a good citizen, always close your PowerBars!
returns nil when eta is < 1 second
Hook at_exit to ensure cleanup if we get interrupted
Remove progress-bar, print a message
Render the PowerBar and return as a string.
settings under current scope (e.g. tty.infinite)
settings-hash
Output the PowerBar. Returns true if bar was shown, false otherwise.
Update state (and settings) without printing anything.
Remove the PowerBar from the screen.
[Validate]