colour.h 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * C Fancy Logger
  3. * colour.h:
  4. * Copyright (c) 2009-2021 986-Studio. All rights reserved.
  5. *
  6. * Created by Manoël Trapier on 20/01/2009.
  7. */
  8. #ifndef LOG_COLOUR_H
  9. #define LOG_COLOUR_H
  10. #define ALLOW_COLORS
  11. #ifdef ALLOW_COLORS
  12. #define __C(c) "\x1B[" c "m"
  13. #else
  14. #define __C(c) ""
  15. #endif
  16. #define ANSI_COLOR __C
  17. #define FBLACK ANSI_COLOR("30")
  18. #define FRED ANSI_COLOR("31")
  19. #define FGREEN ANSI_COLOR("32")
  20. #define FYELLOW ANSI_COLOR("33")
  21. #define FBLUE ANSI_COLOR("34")
  22. #define FMAGENTA ANSI_COLOR("35")
  23. #define FCYAN ANSI_COLOR("36")
  24. #define FWHITE ANSI_COLOR("37")
  25. #define BBLACK ANSI_COLOR("40")
  26. #define BRED ANSI_COLOR("41")
  27. #define BGREEN ANSI_COLOR("42")
  28. #define BYELLOW ANSI_COLOR("43")
  29. #define BBLUE ANSI_COLOR("44")
  30. #define BMAGENTA ANSI_COLOR("45")
  31. #define BCYAN ANSI_COLOR("46")
  32. #define BWHITE ANSI_COLOR("47")
  33. #define CNORMAL ANSI_COLOR("0")
  34. #endif /* COLOR_H */