terminal-palette.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. /* vim: tabstop=4 shiftwidth=4 noexpandtab
  2. * This file is part of ToaruOS and is released under the terms
  3. * of the NCSA / University of Illinois License - see LICENSE.md
  4. * Copyright (C) 2012-2018 K. Lange
  5. *
  6. * terminal-palette.h - Terminal color palette
  7. *
  8. * Provides the color table for both the basic 16 colors (here,
  9. * chosen from the Tango design documents), as well as the other
  10. * colors making up the basic 256 color palette derived from xterm.
  11. */
  12. #define PALETTE_COLORS 256
  13. uint32_t term_colors[PALETTE_COLORS] = {
  14. /* black */ 0x2e3436,
  15. /* red */ 0xcc0000,
  16. /* green */ 0x3e9a06,
  17. /* brown */ 0xc4a000,
  18. /* navy */ 0x3465a4,
  19. /* purple */ 0x75507b,
  20. /* d cyan */ 0x06989a,
  21. /* gray */ 0xeeeeec,
  22. /* d gray */ 0x555753,
  23. /* red */ 0xef2929,
  24. /* green */ 0x8ae234,
  25. /* yellow */ 0xfce94f,
  26. /* blue */ 0x729fcf,
  27. /* magenta*/ 0xad7fa8,
  28. /* cyan */ 0x34e2e2,
  29. /* white */ 0xFFFFFF,
  30. 0x000000,
  31. 0x00005f,
  32. 0x000087,
  33. 0x0000af,
  34. 0x0000d7,
  35. 0x0000ff,
  36. 0x005f00,
  37. 0x005f5f,
  38. 0x005f87,
  39. 0x005faf,
  40. 0x005fd7,
  41. 0x005fff,
  42. 0x008700,
  43. 0x00875f,
  44. 0x008787,
  45. 0x0087af,
  46. 0x0087d7,
  47. 0x0087ff,
  48. 0x00af00,
  49. 0x00af5f,
  50. 0x00af87,
  51. 0x00afaf,
  52. 0x00afd7,
  53. 0x00afff,
  54. 0x00d700,
  55. 0x00d75f,
  56. 0x00d787,
  57. 0x00d7af,
  58. 0x00d7d7,
  59. 0x00d7ff,
  60. 0x00ff00,
  61. 0x00ff5f,
  62. 0x00ff87,
  63. 0x00ffaf,
  64. 0x00ffd7,
  65. 0x00ffff,
  66. 0x5f0000,
  67. 0x5f005f,
  68. 0x5f0087,
  69. 0x5f00af,
  70. 0x5f00d7,
  71. 0x5f00ff,
  72. 0x5f5f00,
  73. 0x5f5f5f,
  74. 0x5f5f87,
  75. 0x5f5faf,
  76. 0x5f5fd7,
  77. 0x5f5fff,
  78. 0x5f8700,
  79. 0x5f875f,
  80. 0x5f8787,
  81. 0x5f87af,
  82. 0x5f87d7,
  83. 0x5f87ff,
  84. 0x5faf00,
  85. 0x5faf5f,
  86. 0x5faf87,
  87. 0x5fafaf,
  88. 0x5fafd7,
  89. 0x5fafff,
  90. 0x5fd700,
  91. 0x5fd75f,
  92. 0x5fd787,
  93. 0x5fd7af,
  94. 0x5fd7d7,
  95. 0x5fd7ff,
  96. 0x5fff00,
  97. 0x5fff5f,
  98. 0x5fff87,
  99. 0x5fffaf,
  100. 0x5fffd7,
  101. 0x5fffff,
  102. 0x870000,
  103. 0x87005f,
  104. 0x870087,
  105. 0x8700af,
  106. 0x8700d7,
  107. 0x8700ff,
  108. 0x875f00,
  109. 0x875f5f,
  110. 0x875f87,
  111. 0x875faf,
  112. 0x875fd7,
  113. 0x875fff,
  114. 0x878700,
  115. 0x87875f,
  116. 0x878787,
  117. 0x8787af,
  118. 0x8787d7,
  119. 0x8787ff,
  120. 0x87af00,
  121. 0x87af5f,
  122. 0x87af87,
  123. 0x87afaf,
  124. 0x87afd7,
  125. 0x87afff,
  126. 0x87d700,
  127. 0x87d75f,
  128. 0x87d787,
  129. 0x87d7af,
  130. 0x87d7d7,
  131. 0x87d7ff,
  132. 0x87ff00,
  133. 0x87ff5f,
  134. 0x87ff87,
  135. 0x87ffaf,
  136. 0x87ffd7,
  137. 0x87ffff,
  138. 0xaf0000,
  139. 0xaf005f,
  140. 0xaf0087,
  141. 0xaf00af,
  142. 0xaf00d7,
  143. 0xaf00ff,
  144. 0xaf5f00,
  145. 0xaf5f5f,
  146. 0xaf5f87,
  147. 0xaf5faf,
  148. 0xaf5fd7,
  149. 0xaf5fff,
  150. 0xaf8700,
  151. 0xaf875f,
  152. 0xaf8787,
  153. 0xaf87af,
  154. 0xaf87d7,
  155. 0xaf87ff,
  156. 0xafaf00,
  157. 0xafaf5f,
  158. 0xafaf87,
  159. 0xafafaf,
  160. 0xafafd7,
  161. 0xafafff,
  162. 0xafd700,
  163. 0xafd75f,
  164. 0xafd787,
  165. 0xafd7af,
  166. 0xafd7d7,
  167. 0xafd7ff,
  168. 0xafff00,
  169. 0xafff5f,
  170. 0xafff87,
  171. 0xafffaf,
  172. 0xafffd7,
  173. 0xafffff,
  174. 0xd70000,
  175. 0xd7005f,
  176. 0xd70087,
  177. 0xd700af,
  178. 0xd700d7,
  179. 0xd700ff,
  180. 0xd75f00,
  181. 0xd75f5f,
  182. 0xd75f87,
  183. 0xd75faf,
  184. 0xd75fd7,
  185. 0xd75fff,
  186. 0xd78700,
  187. 0xd7875f,
  188. 0xd78787,
  189. 0xd787af,
  190. 0xd787d7,
  191. 0xd787ff,
  192. 0xd7af00,
  193. 0xd7af5f,
  194. 0xd7af87,
  195. 0xd7afaf,
  196. 0xd7afd7,
  197. 0xd7afff,
  198. 0xd7d700,
  199. 0xd7d75f,
  200. 0xd7d787,
  201. 0xd7d7af,
  202. 0xd7d7d7,
  203. 0xd7d7ff,
  204. 0xd7ff00,
  205. 0xd7ff5f,
  206. 0xd7ff87,
  207. 0xd7ffaf,
  208. 0xd7ffd7,
  209. 0xd7ffff,
  210. 0xff0000,
  211. 0xff005f,
  212. 0xff0087,
  213. 0xff00af,
  214. 0xff00d7,
  215. 0xff00ff,
  216. 0xff5f00,
  217. 0xff5f5f,
  218. 0xff5f87,
  219. 0xff5faf,
  220. 0xff5fd7,
  221. 0xff5fff,
  222. 0xff8700,
  223. 0xff875f,
  224. 0xff8787,
  225. 0xff87af,
  226. 0xff87d7,
  227. 0xff87ff,
  228. 0xffaf00,
  229. 0xffaf5f,
  230. 0xffaf87,
  231. 0xffafaf,
  232. 0xffafd7,
  233. 0xffafff,
  234. 0xffd700,
  235. 0xffd75f,
  236. 0xffd787,
  237. 0xffd7af,
  238. 0xffd7d7,
  239. 0xffd7ff,
  240. 0xffff00,
  241. 0xffff5f,
  242. 0xffff87,
  243. 0xffffaf,
  244. 0xffffd7,
  245. 0xffffff,
  246. 0x080808,
  247. 0x121212,
  248. 0x1c1c1c,
  249. 0x262626,
  250. 0x303030,
  251. 0x3a3a3a,
  252. 0x444444,
  253. 0x4e4e4e,
  254. 0x585858,
  255. 0x626262,
  256. 0x6c6c6c,
  257. 0x767676,
  258. 0x808080,
  259. 0x8a8a8a,
  260. 0x949494,
  261. 0x9e9e9e,
  262. 0xa8a8a8,
  263. 0xb2b2b2,
  264. 0xbcbcbc,
  265. 0xc6c6c6,
  266. 0xd0d0d0,
  267. 0xdadada,
  268. 0xe4e4e4,
  269. 0xeeeeee,
  270. };