Add colorprinter.jar to your class path to print the Java stdout with formatting and color.
import ghost.coffee.ColorPrinter.ColorPrinter;
import static ghost.coffee.ColorPrinter.ANSI_COLOR.*;
public class Example {
public static void main(String[] args) {
// Print formatted text
ColorPrinter cp = new ColorPrinter();
cp.setTextColor(WHITE);
cp.negative(true);
cp.italics(true);
cp.underline(true);
cp.println("Hello World!");
// Create Simple Debugs
ColorPrinter debug = new ColorPrinter();
debug.setTextColor(GREEN);
debug.disable();
debug.print("DEBUG: I'm disabled");
ColorPrinter warning = new ColorPrinter();
warning.setTextColor(YELLOW);
warning.printf("%d yellow warnings", 1000);
}
}If you would like to compile the jar from scratch run the make command.
make jar