Change terminal font and colors

This commit is contained in:
2025-09-19 20:40:17 +02:00
parent 8d0f80f821
commit c364dca5e5
2 changed files with 366 additions and 9 deletions

View File

@ -4,13 +4,18 @@
#include "bootinfo/bootinfo.h"
#include "term.h"
#include "putchar.h"
#include "fm-t-437.f16.h"
Term TERM;
void term_doinit(void *addr) {
uint32_t bg = 0x001D1F21;
uint32_t fg = 0x00C5C8C6;
TERM.ftctx = flanterm_fb_init(
NULL, NULL,
addr,
NULL, // malloc
NULL, // free
addr, // fb addr
BOOT_INFO.fb->width,
BOOT_INFO.fb->height,
BOOT_INFO.fb->pitch,
@ -20,13 +25,20 @@ void term_doinit(void *addr) {
BOOT_INFO.fb->green_mask_shift,
BOOT_INFO.fb->blue_mask_size,
BOOT_INFO.fb->blue_mask_shift,
NULL,
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL, 0, 0, 1,
0, 0,
0
NULL, // canvas
NULL, // ansi colors
NULL, // ansi bright colors
&bg, // default bg
&fg, // default fg
NULL, // default bg bright
NULL, // default fg bright
FM_T_437_F16,
8,
16,
0,
0,
0,
20
);
}