| 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
|
|
|
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
|
 |
 |
|
|
subject: Colored console output ?
|
|
|