Add: colorprintf, kernel panic coloring

This commit is contained in:
xamidev
2024-09-10 08:40:17 +02:00
parent a9a4b89c85
commit d90682c40e
3 changed files with 246 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ char getchar(int x, int y);
unsigned int getcolor(int x, int y);
void putc(char c);
void colorputc(char c, uint32_t fg, uint32_t bg);
void colorprintf(uint32_t fg, uint32_t bg, const char* fmt, ...);
int* colorprintf_number(int* argp, int length, bool sign, int radix, int width, char pad_char, uint32_t fg, uint32_t bg);
#define PRINTF_STATE_START 0
#define PRINTF_STATE_LENGTH 1