aspose file tools
The moose likes Beginning Java and the fly likes Colored console output ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Colored console output ?" Watch "Colored console output ?" New topic
Author

Colored console output ?

Andy Jack
Ranch Hand

Joined: Nov 22, 2012
Posts: 257
Is it possible to make java code that displays multicolored output on the console ?


Java Newbie with 72% in OCJP/SCJP - Super Confused Jobless Programmer.
I am a "newbie" too. Please verify my answers before you accept them.
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3032
    
    4

There is no cross-platform way to do it. There are ANSI codes which work on Unix type systems, but they don't work on Windows. To get it to work on Windows you will need a library of some sort. A good Google search should help you find the ANSI codes and several libraries for Windows to choose from (maybe JAnsi or something like that? I forget, bu there are multiple).


Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Colored console output ?
 
Similar Threads
printing on an applet
TrayIconDemo on VISTA
User defined unchecked exceptions
simple code ! char conversion
Servlet Query