0

how to output colored text in the console

Im just learning the basics of writing code in Java and was in the code playground and noticed something someone had already written and i wanted to use it but put my own spin on it(just as something i think we would all enjoy here as people interested in code and programming. i found a couple suggestions on stack overflow but when i tried implementing them none of them worked, now it is possible that i didn't implement them correctly but i was hoping one of you wiser and more knowledgeable people out there could maybe help point me in the correct direction Thanks in Advance

18th Dec 2018, 9:27 PM
Vance Taylor
Vance Taylor - avatar
1 Antwort
+ 2
The console colors are largely dependent on the system. Since SL runs on an emulated console, you _cannot_ achieve this on Playground. AFAIK, modern systems' terminal emulators stick to the pallette. This is a guess, but I believe you _may_ get the behaviour you want in no-X (text-only) mode (try login in a new tty).
18th Dec 2018, 10:00 PM
non