color.h 897 B

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