Refactoring, license, Box UI framework

This commit is contained in:
2025-10-17 13:41:37 +02:00
parent 0222bc1f90
commit eeee5aba7d
10 changed files with 322 additions and 319 deletions

28
ui.h Normal file
View File

@@ -0,0 +1,28 @@
/*
* Copyright (C) Artsiom D.
* Copyright (C) shit-co.de
*/
#pragma once
enum ui_color {
UI_RED = 1,
UI_GREEN,
UI_BLUE,
};
void ui_init(void);
void ui_end(void);
void ui_color_on(enum ui_color);
void ui_color_off(enum ui_color);
void ui_char(size_t x, size_t y, char c);
void ui_string(size_t x, size_t y, char *s);
void ui_refresh(void);
void ui_clear(void);