Last active
September 5, 2015 13:25
-
-
Save Mikulas/498693 to your computer and use it in GitHub Desktop.
Mac OS X Console Output Coloring
terminal color
This file contains 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
/** | |
* Mac OS X Console Output Coloring | |
* @author Mikulas Dite | |
* @copyright Mikulas Dite 2012 | |
*/ | |
# Pattern | |
\033[%codes%m%text%\033[0m | |
# Example | |
Red background with white bold 'Failure' text: | |
\033[1;37;47mFailure\033[0m | |
# Effects | |
1 'bold' | |
4 'underscore' | |
5 'blink' | |
7 'reverse' | |
8 'conceal' | |
# Foreground: | |
30 'black' | |
31 'red' | |
32 'green' | |
33 'yellow' | |
34 'blue' | |
35 'magenta' | |
36 'cyan' | |
37 'white' | |
# Background: | |
40 'black' | |
41 'red' | |
42 'green' | |
43 'yellow' | |
44 'blue' | |
45 'magenta' | |
46 'cyan' | |
47 'white' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment