Skip to content

v1.1.0-rc4

Pre-release
Pre-release
Compare
Choose a tag to compare
@bitspittle bitspittle released this 23 Mar 21:31
· 4 commits to 1.1.0 since this release

Hopefully getting close to a v1.1.0 release. Maybe this is the one! 馃

This release adds the following changes:

Kotlin/Native

  • Native terminals will now throw an exception if they aren't run in an interactive environment
    • Such as a legacy terminal (like win7 cmd), or if the program is run indirectly by another (like Gradle), or if the program's stdin/stdout sources are not TTYs (e.g. kotter-app < input.txt is not allowed)
    • This behavior is now identical to the JVM system terminal
  • Fixed a case in Linux/Mac where the "hide cursor" command wasn't getting picked up

All targets

  • Added new runFor(duration) extension methods, so you can now write:
    • section { ... }.runFor(5.seconds)
      • Convenient if you just want to render an animation for a little while.
    • section { ... }.runForAtLeast(5.seconds) { ... }
      • Like runFor but doesn't aggressively abort in case you're still doing more work after the time runs out.
    • section { ... }.runForAtMost(5.seconds) { ... }
      • Convenient if you want to cap some long running operation, such as a download for example.

Test

  • Added new assertMatches test method, which prints a clear error message if your Kotter output doesn't match what's expected.