Introducing Konsole: A Kotlin-idiomatic library for writing dynamic command line applications

This page summarizes the projects mentioned and recommended in the original post on /r/Kotlin

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • kotter

    A declarative, Kotlin-idiomatic API for writing dynamic console applications.

  • Are you curious about what the Compose API might look like if it didn't need to support features that required it to be a compiler plugin? If so, check out Konsole! But first, a bit of background:

  • mosaic

    An experimental tool for building console UI in Kotlin using the Jetpack Compose compiler/runtime (by JakeWharton)

  • Then there is Mosaic, a terminal UI library using Compose, and now we're getting somewhere! A library that takes advantage of Kotlin features was right up my alley. But after trying it out, it feels like it's not 100% there yet, and furthermore it turns out that relying on Compose limits it to being tied to rather recent (and sometimes specific) versions of the Kotlin compiler.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Jansi

    Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.

  • There is Jansi, but code like System.out.println(ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" World").reset()); looked error prone and didn't look fun to write.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts