Mordant 2.0
See original GitHub issueMordant 2.0 is a complete rewrite that adds support for markdown rendering, animations, and renderable components like lists and tables. Specifying colors and styles can now be done through static members of the TextColors
and TextStyles
enums. You don’t need to pass around a TermColors
instance everywhere; you just need to print the final strings with Terminal.print
if you want the ANSI codes downsampled.
There’s still a lot I’d like to do before a stable release.
- Lots of docs two write, including an mkdocs site
- Multiplatform support. The biggest blocker here is the intellij-markdown dependency. I can contribute native support there if necessary.
- Better animation support, especially for periodic animations like spinners and progress bars. It would probably be helpful to add a DSL for progress updates that can animate a progress bar or spinner, automatically calculate time elapsed/remaining etc. This might be tricky on JS or Native. Maybe it would be best to add kotlinx.coroutines as a dependency rather than try to do concurrency manually.
- Automatically update detected terminal dimensions when the window is resized.
- Maybe get rid of
Terminal.colors
. It’s the equivalent of Mordant 1’sTermColors
, but isn’t necessary if you useTerminal.println
. We could simplify a few things if we got rid of it. If we did, you could still use regularprintln
instead of theTerminal
version, you would just need to pass your stings throughTerminal.render
if you want your ANSI codes downsampled.
If anyone can try out the alpha, I’d love to hear your feedback on API, implementation, features, or anything else. You can comment on this issue, start a conversation in the #clikt channel on the kotlinlang slack, or DM me on ASG or kotlinlang slack.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Mordant
Support for animating any widget, like progress bars and dashboards. This README documents Mordant 2.0, which is in beta. You can read the...
Read more >com.github.ajalt.mordant : mordant : 2.0.0-beta2 - Maven Central
Mordant - Colorful multiplatform styling Kotlin for command-line applications. ... com.github.ajalt.mordant:mordant 2.0.0-beta2. content_copy.
Read more >com.github.ajalt.mordant » mordant » 2.0.0-beta3 - Maven Repository
License, Apache 2.0. Tags, github. HomePage, https://github.com/ajalt/mordant. Date, Oct 26, 2021. Files, pom (1 KB) jar (71 KB) View All.
Read more >Mordant | Wilson Effects
The Mordant operates on an industry standard 2.1mm center negative power supply. All pedals are covered by a one year warranty on parts...
Read more >US5466263A - Process for dyeing fur skins with oxidation dyes
Killing: dispensed with Mordant: 2.0 g/l of potassium dichromate 1.5 ml/l of glyoxylic acid ( ®Feliderm CS) 0.5 g/l of degreasing agent (...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm it works, thanks a lot @ajalt
Mordant 2.0.0-beta2 has been released, which includes macosX64 support (@jmfayard)