console vga stuff

This commit is contained in:
2026-07-14 17:40:30 -05:00
parent 454de8feed
commit 6a79a20cf6
15 changed files with 456 additions and 559 deletions

20
kernel/lib/font.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef KFONT_H
#define KFONT_H
#include <stdint.h>
typedef struct {
uint8_t magic[2];
uint8_t mode;
uint8_t charsz;
} psf_hdr_t;
typedef struct {
psf_hdr_t* hdr;
void* glyphs;
} psf_font_t;
psf_font_t* load_font(const char* path);
void free_font(psf_font_t* font);
#endif