Skip to content

Instantly share code, notes, and snippets.

@robby
Created March 29, 2012 23:49
Show Gist options
  • Save robby/2245008 to your computer and use it in GitHub Desktop.
Save robby/2245008 to your computer and use it in GitHub Desktop.
terminal colors
var styles = {
//styles
'bold' : [1, 22],
'italic' : [3, 23],
'underline' : [4, 24],
'inverse' : [7, 27],
//grayscale
'white' : [37, 39],
'grey' : [90, 39],
'black' : [90, 39],
//colors
'blue' : [34, 39],
'cyan' : [36, 39],
'green' : [32, 39],
'magenta' : [35, 39],
'red' : [31, 39],
'yellow' : [33, 39]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment