aspose file tools*
The moose likes Beginning Java and the fly likes Colored console output ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
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: 4181
    
  21

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 ?