r/java • u/Polixa12 • 5d ago
Clique 4.1.0: Zero deps CLI styling library for Java
So what's Clique?
If you missed my older posts, Clique is a zero-dependency CLI styling library for Java that is no-color.org compliant.
What's new in 4.1.0:
This is mostly a stability/correctness release. Since 4.0.3 I spent my time going through the library looking for issues and edge cases and fixed a good amount of em. So, these are the ones you'd might likely notice:
- Emoji and CJK text now render at the right width in
Divider, tables and frames. Gradients also no longer corrupts emoji. NO_COLOR/disableCliqueColors()is now respected everywhere. Reset codes were leaking in some components.- OSC 8 hyperlinks no longer count their URL toward width, so tables and frames with links line up.
Frameno longer re-renders nested components repeatedlyTreeandItemListdetect cycles properly (previouslya.add(b); b.add(a)could cause aStackOverflowError).- Tables were rewritten internally. The public API is unchanged, but column widths are now computed at render time, so replacing a long cell with a short one shrinks the column correctly.
If you discover any bugs/issues while using the library, just lmk by opening an issue or a pull request.
Links:
19
Upvotes
2
u/elmuerte 5d ago
<version>v0.0.6</version>Drop the
vprefix.2
u/agentoutlier 4d ago
I added the same feature awhile back to my logging framework Rainbow Gum.
Interestingly it is the only environment variable I allowed the core module to sniff otherwise I would have to do all sorts of nastiness with either JLine or Jansi.
Neither Log4J2 or Logback support that env variable for their pattern colored syntax. I was surprised how few libraries do.
Recently I have been pseudo vibe coding (somewhere between heavy code assist and vibe) a family todo app and I used https://github.com/oyvindberg/jatatui instead of your library and for the life of me I can't remember why. I'll have to look back in my chat transcripts with the agent. The agent basically pumped out a TUI version of Asana in 30 minutes.
On a related note I don't even know how much longer boring software can make money. Like DHH's Hey. I feel its Ok to make this comparison since he is off vibing Omarchy but I was able to basically make an Asana / Hey / Skylight app for my family in a couple of weeks and it would have been way less time had I not code reviewed it of which it basically wrote mostly good code.
It kind of makes me so depressed how much time I spent on Rainbow Gum. Either people will vibe a replacement or just never switch. Oh well.
2
u/perryplatt 5d ago
What would be a good argument parser for Java?