JColor
An easy syntax to format your strings with colored fonts and backgrounds. (by dialex)
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. (by fusesource)
JColor | Jansi | |
---|---|---|
1 | 4 | |
478 | 1,086 | |
- | 0.3% | |
2.9 | 6.7 | |
6 months ago | about 2 months ago | |
Java | Java | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
JColor
Posts with mentions or reviews of JColor.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-07.
Jansi
Posts with mentions or reviews of Jansi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-07.
- Colorize Java
-
Library like Python Rich
jansi https://github.com/fusesource/jansi Allows you to use ANSI escape colorization/handling Probably insufficient for your use case though.
-
How do I color the output in Windows CMD / console?
In my posting I forgot to add this link here https://github.com/fusesource/jansi (it's not inserted), where import org.fusesource.jansi.AnsiConsole; and AnsiConsole.systemInstall(); are mentioned. Because of this, I think it is possible, but I don't understand how to use it.
-
Introducing Konsole: A Kotlin-idiomatic library for writing dynamic command line applications
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.
What are some alternatives?
When comparing JColor and Jansi you can also consider the following projects:
jbock - Reflectionless command line parser
ASCII Table - Several implementations of a text table, originally using ASCII and UTF-8 characters for borders.
Text-IO - A library for creating interactive console applications in Java
Java ASCII Render - ASCII renderer in pure java with no external dependencies
kotter - A declarative, Kotlin-idiomatic API for writing dynamic console applications.
mosaic - An experimental tool for building console UI in Kotlin using the Jetpack Compose compiler/runtime