feature: black screen with scrolling is better, it also uses the full screen length

This commit is contained in:
2024-12-18 14:13:45 +01:00
parent dda9c8a1ef
commit 77928aca4b
5 changed files with 31 additions and 24 deletions

View File

@ -2,8 +2,6 @@
#include <stdint.h>
#define FONT_SIZE 13
struct font {
uint32_t height;
uint32_t width;

View File

@ -5,10 +5,11 @@
#include <stddef.h>
#include <stdint.h>
#define VGA_WIDTH 80
#define VGA_HEIGHT 25
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
#define FONT_SIZE 13
#define VGA_WIDTH (SCREEN_WIDTH / FONT_SIZE)
#define VGA_HEIGHT (SCREEN_HEIGHT / FONT_SIZE)
#define TERM_COUNT 10
struct screen {
@ -51,6 +52,7 @@ int terminal_writestring(const char *data);
int terminal_writelong(long number);
void terminal_set_screen(int pos);
void terminal_clear(void);
void terminal_refresh(void);
struct key_event terminal_getkey(void);
void update_cursor(void);
void move_cursor(int direction);