From 567e0df2434b270411d3356b8e362fc881113335 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 29 Aug 2020 14:05:22 +0200 Subject: first working --- src/color.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/color.h') diff --git a/src/color.h b/src/color.h index 70a8b16..a2f82d3 100644 --- a/src/color.h +++ b/src/color.h @@ -8,7 +8,9 @@ #include "m.h" -#define _COLORS_SIZE 16u +#define _COLORS_SIZE 16u +#define COLOR_FG 1 +#define COLOR_BG 2 struct console_color { @@ -28,7 +30,7 @@ uint8_t rgb_luminance(uint8_t R, uint8_t G, uint8_t B); //Get nearest printable color in console char *calc_col(uint8_t R, uint8_t G, uint8_t B); -char *calc_col_ansi(uint8_t R, uint8_t G, uint8_t B); +char *calc_col_ansi(uint8_t R, uint8_t G, uint8_t B, uint8_t _mode); char *calc_bg_col_ansi(uint8_t R, uint8_t G, uint8_t B); #endif //_COLOR_H_ -- cgit v1.2.3