color.js 416 B

12345678910111213141516171819202122232425
  1. // Generated by CoffeeScript 1.6.3
  2. var colors;
  3. colors = {
  4. black: '30',
  5. dgray: '1;30',
  6. red: '31',
  7. lred: '1;31',
  8. green: '32',
  9. lgreen: '1;32',
  10. brown: '33',
  11. yellow: '1;33',
  12. blue: '34',
  13. lblue: '1;34',
  14. purple: '35',
  15. lpurple: '1;35',
  16. cyan: '36',
  17. lcyan: '1;36',
  18. lgray: '37',
  19. white: '1;37'
  20. };
  21. exports.Color = function(c, str) {
  22. return ['\x1B[', colors[c], 'm', str, '\x1B[m'].join('');
  23. };