2019-12-13 03:27:13 +00:00
|
|
|
#ifndef COLORS_INCLUDED
|
|
|
|
#define COLORS_INCLUDED
|
|
|
|
|
|
|
|
#include "termbox.h"
|
2019-12-13 21:15:29 +00:00
|
|
|
#define CLRS_LEN 13
|
|
|
|
|
2020-03-09 16:29:38 +00:00
|
|
|
#ifdef __OpenBSD__
|
|
|
|
#include "sys/types.h"
|
|
|
|
#else
|
2020-09-17 11:42:48 +00:00
|
|
|
#include "stdint.h"
|
2020-03-09 16:29:38 +00:00
|
|
|
#endif
|
|
|
|
|
2019-12-13 21:15:29 +00:00
|
|
|
#define RED 0xdd1111
|
|
|
|
#define BLACK 0x000000
|
2019-12-13 21:35:13 +00:00
|
|
|
#define YELLOW 0xff7700
|
2019-12-13 21:15:29 +00:00
|
|
|
#define WHITE 0xffffff
|
2019-12-13 03:27:13 +00:00
|
|
|
|
2019-12-13 21:15:29 +00:00
|
|
|
struct tb_cell normcolors[CLRS_LEN] =
|
2019-12-13 03:27:13 +00:00
|
|
|
{
|
2019-12-13 21:15:29 +00:00
|
|
|
// default
|
2019-12-13 03:27:13 +00:00
|
|
|
{ ' ', 9, 0 },
|
2019-12-13 21:15:29 +00:00
|
|
|
|
|
|
|
// red/black
|
2019-12-13 03:27:13 +00:00
|
|
|
{ 0x2591, 2, 0 },
|
|
|
|
{ 0x2592, 2, 0 },
|
|
|
|
{ 0x2593, 2, 0 },
|
|
|
|
{ 0x2588, 2, 0 },
|
2019-12-13 21:15:29 +00:00
|
|
|
|
|
|
|
// yellow/red
|
2019-12-13 03:27:13 +00:00
|
|
|
{ 0x2591, 4, 2 },
|
|
|
|
{ 0x2592, 4, 2 },
|
|
|
|
{ 0x2593, 4, 2 },
|
|
|
|
{ 0x2588, 4, 2 },
|
2019-12-13 21:15:29 +00:00
|
|
|
|
|
|
|
// white/red
|
|
|
|
{ 0x2591, 8, 2 },
|
|
|
|
{ 0x2592, 8, 2 },
|
|
|
|
{ 0x2593, 8, 2 },
|
|
|
|
{ 0x2588, 8, 2 },
|
|
|
|
};
|
|
|
|
|
|
|
|
struct tb_cell truecolors[CLRS_LEN] =
|
|
|
|
{
|
|
|
|
// default
|
2019-12-13 21:35:13 +00:00
|
|
|
{ ' ', 9, 0 },
|
2019-12-13 21:15:29 +00:00
|
|
|
|
|
|
|
// red/black
|
|
|
|
{ 0x2591, RED, BLACK },
|
|
|
|
{ 0x2592, RED, BLACK },
|
|
|
|
{ 0x2593, RED, BLACK },
|
|
|
|
{ 0x2588, RED, BLACK },
|
|
|
|
|
|
|
|
// yellow/red
|
|
|
|
{ 0x2591, YELLOW, RED },
|
|
|
|
{ 0x2592, YELLOW, RED },
|
|
|
|
{ 0x2593, YELLOW, RED },
|
|
|
|
{ 0x2588, YELLOW, RED },
|
|
|
|
|
|
|
|
// white/red
|
|
|
|
{ 0x2591, WHITE, RED },
|
|
|
|
{ 0x2592, WHITE, RED },
|
|
|
|
{ 0x2593, WHITE, RED },
|
|
|
|
{ 0x2588, WHITE, RED },
|
2019-12-13 03:27:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|