color.h 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * ANSI Color definitiont - The Quick6502 Project
  3. * include/color.h
  4. *
  5. * Created by Manoel Trapier on 25/06/10
  6. * Copyright 2010 986 Corp. All rights reserved.
  7. *
  8. * $LastChangedDate:$
  9. * $Author:$
  10. * $HeadURL:$
  11. * $Revision:$
  12. *
  13. */
  14. #ifndef COLOR_H
  15. #define COLOR_H
  16. #define ALLOW_COLORS
  17. #ifdef ALLOW_COLORS
  18. #define __C(c) "\x1B[" c "m"
  19. #else
  20. #define __C(c) ""
  21. #endif
  22. #define ANSI_COLOR __C
  23. #define FBLACK ANSI_COLOR("30")
  24. #define FRED ANSI_COLOR("31")
  25. #define FGREEN ANSI_COLOR("32")
  26. #define FYELLOW ANSI_COLOR("33")
  27. #define FBLUE ANSI_COLOR("34")
  28. #define FMAGENTA ANSI_COLOR("35")
  29. #define FCYAN ANSI_COLOR("36")
  30. #define FWHITE ANSI_COLOR("37")
  31. #define BBLACK ANSI_COLOR("40")
  32. #define BRED ANSI_COLOR("41")
  33. #define BGREEN ANSI_COLOR("42")
  34. #define BYELLOW ANSI_COLOR("43")
  35. #define BBLUE ANSI_COLOR("44")
  36. #define BMAGENTA ANSI_COLOR("45")
  37. #define BCYAN ANSI_COLOR("46")
  38. #define BWHITE ANSI_COLOR("47")
  39. #define CNORMAL ANSI_COLOR("0")
  40. #endif /* COLOR_H */