Skip to content
← Back to Community
Colored text in Java
Profile icon
Deacon_Cronin

I was wondering if there was a way to make colored console output in Java on repl. I tried ANSI escape codes and they didn't seem to work, so I need another way of doing it. Google isn't being particularly helpful with this.

Voters
Profile icon
Deacon_Cronin
Comments
hotnewtop
Profile icon
SixBeeps

Could you share your code using the ANSI escape codes? They work that way in Python, so I'd be surprised if they didn't in Java.

Profile icon
Deacon_Cronin