bestcolors.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Terminal colors (16 first used in escape sequence) */
  2. static const char *colorname[] = {
  3. /* 8 normal colors */
  4. [0] = "#303030", /* black */
  5. [1] = "#a43261", /* red */
  6. [2] = "#006ca5", /* green */
  7. [3] = "#007086", /* yellow */
  8. [4] = "#0a62f0", /* blue */
  9. [5] = "#aa00aa", /* magenta */
  10. [6] = "#0061b1", /* cyan */
  11. [7] = "#c6c6c6", /* white */
  12. /* 8 bright colors */
  13. [8] = "#5e5e5e", /* black */
  14. [9] = "#ff9fc9", /* red */
  15. [10] = "#3bd6ff", /* green */
  16. [11] = "#00ddf4", /* yellow */
  17. [12] = "#0aa5f0", /* blue */
  18. [13] = "#ff55ff", /* magenta */
  19. [14] = "#93c9ff", /* cyan */
  20. [15] = "#ffffff", /* white */
  21. /* special colors */
  22. [256] = "#120012", /* background */
  23. [257] = "#0aa5f0", /* foreground */
  24. };
  25. /*
  26. * Default colors (colorname index)
  27. * foreground, background, cursor
  28. */
  29. static unsigned int defaultfg = 257;
  30. static unsigned int defaultbg = 256;
  31. static unsigned int defaultcs = 257;
  32. /*
  33. * Colors used, when the specific fg == defaultfg. So in reverse mode this
  34. * will reverse too. Another logic would only make the simple feature too
  35. * complex.
  36. */
  37. static unsigned int defaultitalic = 7;
  38. static unsigned int defaultunderline = 7;