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.

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact