ANSI for Java
Spice up your Java programs with ANSI
I created a simple library for Java developers to utilize in their projects to make their console messages prettier!
You might think to use interpolation to put ANSI codes manually, but what's the hassle! Using ansicolors you can utilize the potential of method cascading to condense the ANSI formatting into just a few lines!
It is as simple as doing the following:
System.out.println(jm_Ansi.make().red_bg().white().blink_fast().toString("ERROR"!));
Everything is also designed to be as customizable as possible, as more features to render the characters will come out soon.
Want to turn off ANSI coloring? Without having to include ugly conditional checks or do a complete refactoring, there is a single toggle you can utilize to disable ANSI formatting at an instant.
Check it out here: https://github.com/exoad/ansicolor
:)
Top comments (0)