0
Console print color
How do you get a java console to print text in color?
6 Réponses
+ 1
In this thread you have information about it
https://stackoverflow.com/questions/5762491/how-to-print-color-in-console-using-system-out-println
+ 1
I think I should ask something important ... Are you using CodePlayground to test this? In this case, SL does not offer support for this. The way in which interpreters/compilers work here is particular: they execute the code and then return it as plain text (unless it is a WEB code)
If you are trying to do it in Windows it will not work in the same way (as it is specified in the link that I sent). In this OS you must use an external library for it (inside the thread they quote Jansi and apparently if you have installed a Cygwin environment it will work using ANSI escape codes)
0
I tried ANSI codes but they only printed a string not changed the color of the text outputted from the console. Is there an important statement I’m missing.
0
I use the eclipse ide
0
In the Eclipse console you will not be able to run ANSI escape codes (or not without a plugin). Unfortunately I do not work with the IDE, so I can not offer much more help.
0
I figured out how to get eclipse to run ANSI codes. However how do you create an ANSI code that utilizes rgb