Skip to content

v2.1.0

Choose a tag to compare

@hekmon hekmon released this 08 Oct 20:48
· 4 commits to main since this release
c285b4a
  • NEW: bar with auto size (with no width set) will now align with each others for improved readability
    • In order to do so, padding will automatically be added externaly (eg left padding for prepend decorators and right padding for append decorators). It is possible to change the padding position with the WithSameAutoSizeInternalPadding function option at the bar creation.
    • Old behavior (unaligned auto expanded bars) can still be restored by setting the BarsAutoSizeSameSize global variable to false if desired.
  • CHANGED: the remaining time decorator has been modified to only show seconds if remaining time is lower than a minute. As remaining time is a prediction based on duration since start, it often changed at each tick/update (especially at the beginning) thus giving an ever changing value and distrubting the output of the new auto size feature.
  • NEW: detect if output is a tty. This allows programs using liveprogress to run as daemon or with their output redirected to a log file while still having an exploitable log file (otherwise the output is filled with special terminal characters). If Output is not a tty, a simple warning will be printed that liveprogress won't show any bars or custom line at Start but direct writes using Bypass for regular logging will work. This way liveprogress programs can be launched interactively or not !

Full Changelog: v2.0.4...v2.1.0