question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mordant 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’s TermColors, but isn’t necessary if you use Terminal.println. We could simplify a few things if we got rid of it. If we did, you could still use regular println instead of the Terminal version, you would just need to pass your stings through Terminal.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:open
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jmfayardcommented, Jun 2, 2021

I can confirm it works, thanks a lot @ajalt

0reactions
ajaltcommented, Jun 2, 2021

Mordant 2.0.0-beta2 has been released, which includes macosX64 support (@jmfayard)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found