made the renderer escapecode based

This commit is contained in:
2025-08-20 21:54:26 -07:00
parent fcfd5131ec
commit 0abe4974df
2 changed files with 30 additions and 5 deletions

View File

@@ -22,16 +22,19 @@ extern "C" {
#ifdef TART_RGB_COLORS
#define NULL_CELL (struct tart_cell){{0,0,0},{0,0,0},0,0,0}
#define TART_CELL_DATA_SIZE 16 // todo add number
#define TART_CELL_DATA_SIZE 32 // todo add number
typedef char tart_display[2];
#else
#define NULL_CELL (struct tart_cell){0,0,0,' '}
#define TART_CELL_DATA_SIZE 20
typedef char tart_display;
#endif
#define TART_OK 0
#define TART_STYLE_BOLD 1
#define TART_STYLE_DIM 2
#define TART_STYLE_ITALIC 3
#define TART_STYLE_UNDERLINE 4
#define TART_STYLE_BLINKING 5
#define TART_STYLE_INVERSE 7