Created
May 5, 2014 17:31
-
-
Save lcaballero/5e7f5c030c1be1574a63 to your computer and use it in GitHub Desktop.
Quick snippet about how to add color to the console from Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void start() { | |
started = true; | |
System.out.print("\u001b[31m"); | |
System.out.print(Joiner.on(", ").join("Hello", "World")); | |
System.out.print("\u001b[39m"); | |
System.out.println(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment