progressbar

Terminal-based progress bar for Java / JVM

MIT License

Stars
1.1K

Bot releases are hidden (Show)

progressbar - 0.10.1 Latest Release

Published by ctongfei 7 months ago

  • Improvements:
    • Changed the JPMS module dependency org.jline to a more fine-grained module org.jline.terminal (#158, PR #159). Thanks @brett-smith !
    • Added a new builder method setRenderer to allow custom renderers (#157). Thanks @drothmaler !
progressbar - 0.10.0

Published by ctongfei about 1 year ago

  • New functionalities:
    • Makes me.tongfei.progressbar a Java 9 module (#149, #153, #154). Thanks @clo-vis, @Kamillaova, @bowbahdoe !
    • Enables the builder pattern for ProgressBarStyle (PR #152). Thanks @PakhomovAlexander !
  • Dependency version bump.
progressbar - 0.9.5

Published by ctongfei about 2 years ago

  • Bugfixes:
    • Fixed the problem of ProgressState not being public, thus making setEtaFunction useless (#147, PR #146). Thanks @deejgregor, @natanfudge !
    • Correct handling of ANSI control characters in calculating the display length.
  • New functionalities:
    • Added a new UNICODE_COLORFUL_BAR style.
progressbar - 0.9.4

Published by ctongfei about 2 years ago

  • New functionalities:
    • In ProgressBarBuilders, one can now switch whether to show the remaining time, or to provide a custom
      function to compute the remaining time (if the progress is not linear) (#131). Thanks @MagnusErikssonAB !
    • In ProgressBarBuilders, one can now set .clearDisplayOnFinish() to clear the display on terminals when
      a progress is complete (#135). Thanks @mattparkins !
    • Added a method ProgressBar::isIndefinite to check if a progress bar's max is unknown (#140). Thanks @lt3stus3el !
  • Bugfixes:
    • Fixed the bug of not drawing after resetting or stepping back caused by #91 (#124). Thanks @Bricktheworld !
    • Suppress exceptions thrown in Spliterator.estimateSize and continue as if indefinite (#141). Thanks @seanf !
  • Dependency version bump.
progressbar - 0.9.3

Published by ctongfei over 2 years ago

  • New functionalities:
    • Supports for wrapping around java.io.OutputStreams and java.io.Writers (#114). Thanks @azachar !
    • Added continuousUpdate boolean parameter to various constructors and the ProgressUpdateAction so that long-running processes don't take forever to print something (#121, PR #120). Thanks @gaoagong !
  • Performance improvements:
    • Improved performance in rendered string building (PR #107). Thanks @heroesleo65 !
    • Improved performance in ConsoleProgressBarConsumer::accept (PR #106). Thanks @heroesleo65 !
  • Bugfixes:
    • Displays a progress bar immediately after it starts, regardless of whether it has made any progress (#117). Thanks @azachar !
    • Closing a progress bar will now force the progress bar to refresh (PR #110). Thanks @kmtong !
    • Using a default DecimalFormat object if isSpeedShown is true as it will otherwise throw a NullPointerException during rendering (#121, PR #120). Thanks @gaoagong !
  • Dependency bump. Specifically:
progressbar - 0.9.2

Published by ctongfei over 3 years ago

  • New functionalities:
    • Support for wrapping around java.io.Readers.
  • Bugfixes:
    • Fixed potential StringIndexOutOfBoundsException and improved performance in trimDisplayLength (PR #104). Thanks @heroesleo65 !
    • Fixed the bug that incorrectly calculates string display length while displaying that results in last ) truncated (#105).
  • Improvements:
    • Size now known when wrapping an array (PR #101). Thanks @seanf !
    • Better estimation of initial max for spliterators (#102).
  • Misc:
    • Dependency version bump.
progressbar - 0.9.1

Published by ctongfei over 3 years ago

  • Improvements:
    • Correct rendering of East Asian full-width characters as defined in Unicode TR11 (#75). Thanks @ImSejin and @fangyuzhong2016 !
    • Only renders the progress bar when progress is made (#91). This improves the performance of progress bars. Thanks @elanzini !
    • Added setMaxRenderedLength method to builders (#71). Thanks @koppor !
  • Misc:
    • Updates JUnit 4 to JUnit 5 (PR #93). Thanks @michaelsiepmann !
    • Dependency version bump.
progressbar - 0.9.0

Published by ctongfei about 4 years ago

  • New functionalities:
    • Supports the parallel display of multiple progress bars (PR #69), fixing #11. Thanks @vehovsky !
    • Supports pausing and resuming progress bars (PR #56, PR #63), fixing #17. Thanks @mesat !
    • Supports direct wrapping around arrays (#62).
    • Supports customized max length for progress bars (#71). Thanks @koppor and @cloudnotify !
  • Bugfixes:
    • Fixes the bug of dividing-by-zero when extra message is too long on indefinite progress bars (PR #85), fixing #84. Thanks @AndreiNekrasOn and @rharder !
  • Misc:
    • Removed redundant jline-terminal-jansi dependency (#77). Thanks @zbateson !
    • Added references to Kotlin extensions (#72). Thanks @heinrichreimer !
    • Changed the permission level of some methods in DefaultProgressBarRenderer to "protected" to make it more extensible (#81). Thanks @ksvladimir !
    • Dependency version bump.
progressbar - 0.8.1

Published by ctongfei over 4 years ago

  • Bugfixes:
    • Fixed the bug of possible negative suffix length (PR #58). Thanks @kristofarkas !
    • Fixed the issue of stepping by -1 when wrapped input stream is depleted (#60, PR #61). Thanks @mordechaim !
    • Default value for initial max in progress bar builders should be -1, not 0 (#60, PR #61). Thanks @mordechaim !
  • Dependency version bump.
progressbar - 0.8.0

Published by ctongfei almost 5 years ago

  • Supports loggers (PR #54) by factoring out progress bar consumers and renderers. This allows progress bars to be used with logging libraries such as SLF4J, hence fixing #12 and #18. Thanks @alexpeelman !
  • Dependency version bump.
progressbar - 0.7.4

Published by ctongfei over 5 years ago

  • Fixed the bug of slow exit with fast jobs (#50, PR #51). Thanks @meawoppl @denisrosset !
  • Dependency version bump.
progressbar - 0.7.3

Published by ctongfei over 5 years ago

Added support for customizing the decimal format of speed display (PR #49). Thanks @wfxr !

progressbar - 0.7.2

Published by ctongfei about 6 years ago

  • Added support for wrapping around Spliterators and Streams. Streams could be either sequential or parallel (#44). Thanks @michaelmior !
  • Added support for displaying speed with unit (PR #43). Thanks @dani909 !
progressbar - 0.7.1

Published by ctongfei about 6 years ago

  • Fixed the problem of not properly closing the JLine Terminal object (#40). Thanks @voseldop !
  • Suppressed JLine warning if a dumb terminal is created (partially fixed #42). Thanks @BuZZ-DEE !
  • Documentation:
    • Moved CHANGELOG.md to the home directory and created a symlink in the docs/ folder to it (#41). Thanks @koppor !
    • Fixed bug (demo code was wrong) in the declarative usage section (#39). Thanks @AbhinavVishak !
progressbar - 0.7.0

Published by ctongfei over 6 years ago

  • Utilized the try-with-resource pattern for the Java imperative syntax, deprecating ProgressBar#start and ProgressBar#stop.
  • Introduced units for progress bar that enables showing the total amount of work in some unit (e.g. MB / GB).
  • Introduced the builder pattern for constructing progress bars (instead of lots of different constructors).
  • Added declarative usage that wraps around InputStream, which enables tracking the progress of reading a large file or stream.
  • Progress bars are now colorful by default using ANSI color codes.
progressbar - 0.6.0

Published by ctongfei over 6 years ago

  • Added declarative usage.
  • Updated jline dependency to JLine 3.
  • Fixed problem in IntelliJ console. Thanks @saidaspen, @albancolley, @felixdivo, @AbhinavVishak !
  • Fixed warning about encoding during Maven build. Thanks @khmarbaise !
  • Fixed Java version in Maven build. Thanks @ccamel !
progressbar - 0.5.5

Published by ctongfei over 7 years ago

Fixed the problem of the progress bar being stuck if it finishes too fast. Fixed the problem of StringIndexOutOfBoundsException error when the console width is too small.

progressbar - 0.5.4

Published by ctongfei over 7 years ago

Added support for indefinite progress bars.

progressbar - 0.5.3

Published by ctongfei over 7 years ago

Type of current/max is changed from int to long.

progressbar - 0.5.2

Published by ctongfei over 7 years ago

Fixed line wrapping problem when the extra message is too long; Simplified start method.