How can I print colored text from Java to a terminal such as the Linux console?

Nathan Meyers

Native applications can take advantage of the curses library to use special terminal capabilities such as color. There is no such capability in the core Java classes, but here's a library that provides similar capabilities in Java: http://alpha2.iit.unict.it/JOS/jcurses.html.