Skip to content

0.21.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 02:41
· 11 commits to master since this release

New:

  • ProgressBar fills from the left to an eighth of a cell as its progress goes from 0 to 1, in a color of its own over a track color for the part still to fill. It is one row high and DefaultProgressBarWidth cells wide unless its modifier sizes it.
  • Spinner shows the frames of a SpinnerStyle in turn while it is composed, as wide as the widest frame. SpinnerStyle has Dots, Line, and Pulse, and takes frames and an interval of one's own.

Fixed:

  • A program which fails leaves the terminal as one which completes does, with the cursor shown. The terminal was restored before the program's last output, which hid the cursor again.
  • The runMosaic* family of functions closes the TTY only once the terminal stopped reading it. Quitting could fail with IOException: 9 (EBADF) from a read of the closed TTY.
  • On JDK 22 and newer, reads which reach the end of the input return -1, as they do on older JDKs, rather than throwing IndexOutOfBoundsException. This covers Tty, TestTerminal, and StandardStreams.