Releases: ajalt/mordant
Releases · ajalt/mordant
2.1.0
2.0.1
2.0.0
2.0.0-beta14
Added
Terminal.rawPrint
which allows you to print ANSI codes manually. (#91)- Option to disable trailing line breaks on animations.
Terminal.print
,println
, andrawPrint
now accept astderr
parameter that will print to stderr (if available).
Changed
- Fix typo in enum name: renamed
Borders.TOM_BOTTOM
toBorders.TOP_BOTTOM
. (#100) - The terminal cursor will now be hidden when
progressAnimation
is running.
Removed
- Removed
TerminalRecorder.currentContent
. Usestdout()
,stderr()
oroutput()
instead. - Removed
Terminal.forStdErr()
andTerminalInterface.forStdErr()
. UseTerminal.println(stderr=true)
instead.
2.0.0-beta13
Added
- Add
Animation.stop()
to stop an animation without clearing it. (#95) - Animations now support resuming after a call to
stop
orclear
. (#94) TextStyles.reset
,TextStyles.resetForeground
, andTextStyles.resetBackground
to clear existing styles.
Fixed
- Fix
TerminalInfo.interactive
not includingoutputInteractive
- Fix prompts on JS targets that were broken by KT-55817
Changed
- Source-incompatible change: All boolean fields on
TextStyle
are now nullable. A null field indicates no change to the previous value when adding or nesting styles. verticalLayout{}
now defaultsTextAlign.NONE
, meaning it won't add any trailing whitespace to lines. You can return to the old behavior withalign = TextAlign.LEFT
.- When nesting styles, the outer style will now override inner styles at the start of a string. (e.g.
red(blue("x")) == red("x")
) - Definition List terms and entries can now be empty
2.0.0-beta12
2.0.0-beta11
Added
- Tables and other layouts can now be completely empty (#82)
Changed
- Update Kotlin to 1.8.0
Removed
- Removed JS/Legacy publication. The JS target only publishes artifact build with the IR compiler.
2.0.0-beta10
Changed
- JVM: terminal detection now uses JNA to call kernel functions directly.
- Interactive state of stdin and stdout are now detected separately.
- Terminal size detection is now fast since it does not need a subprocess. Terminal size is detected automatically at startup.
Fixed
- Detect terminal correctly when running in the IntelliJ terminal tab, but not through a run action. (#76)
Deprecated
timeoutMs
parameter toTerminalDetection.updateTerminalSize
. This function is now fast on all platforms.
2.0.0-beta9
Changed
- Stop stripping trailing newline from text when using
Whitespace.PRE
(#75)
2.0.0-beta8
Added
- Implemented
hideInput
for prompts on native targets (#63) - Improve cell-width calculation for emoji sequences like skin tone modifiers (#64)
- Added
Theme.plus
to combine two themes - Added
Padding.plus
to combine two padding values
Changed
- Replaced most of the
Padding
constructor andWidget.withPadding
overloads with a unified builder interface - Renamed the top level
row
andcolumn
builders tohorizonalLayout
andverticalLayout
, respectively - Update Kotlin to 1.7.20
- Kotlin/Native: use new default memory manager. Objects are no longer frozen.
Removed
- Removed
buildWidget
. UsehorizonalLayout
andverticalLayout
instead.