Added font renderer and terminal emulator

This commit is contained in:
Jozef Nagy 2025-05-15 00:55:59 +02:00
parent bc4ec556e2
commit dd4fda27bb
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
22 changed files with 1921 additions and 5151 deletions

View file

@ -21,6 +21,21 @@
#define _UI_UI_H
#include <ui/framebuffer.h>
#include <ui/terminal.h>
#include <ui/font.h>
// this is so hacky... but it works
#ifdef FONT_IMPLEMENTATION
#include <lib/string.h>
#include <mm/mman.h>
#define SSFN_memcmp memcmp
#define SSFN_memset memset
#define SSFN_realloc mem_realloc
#define SSFN_free mem_free
#define SSFN_IMPLEMENTATION
#endif
#include <ui/ssfn.h>
#include <stdint.h>
@ -29,6 +44,13 @@ struct ui_context {
struct fb_mode *fb_modes;
int total_modes;
int current_mode;
int ui;
struct terminal terminal;
ssfn_t font;
ssfn_buf_t font_buf;
char *font_file;
};
void ui_init();