Hello, world! in linear framebuffer

This commit is contained in:
2025-12-21 14:56:19 +01:00
parent 634cf699dc
commit b41b6e2369
7 changed files with 149 additions and 7 deletions

22
src/term.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef TERM_H
#define TERM_H
int term_init();
void kputs(const char* str);
enum TermColors
{
BLACK = 0x000000,
WHITE = 0xffffff
};
#define PSF1_FONT_MAGIC 0x0436
typedef struct
{
uint16_t magic;
uint8_t fontMode;
uint8_t characterSize; // height
} PSF1_Header;
#endif