add: backspace work with vbe

This commit is contained in:
2024-12-18 23:56:17 +01:00
parent 77928aca4b
commit 4a99b82e15
4 changed files with 53 additions and 26 deletions

View File

@ -2,5 +2,4 @@
#define PROMPT "> "
void shell_init(void);
void auto_complete(void);
void shell_init(void);

View File

@ -1,5 +1,7 @@
#pragma once
#include "font.h"
#include "icon.h"
#include "keyboard.h"
#include <stdbool.h>
#include <stddef.h>
@ -19,6 +21,8 @@ struct screen {
uint32_t bg_color;
uint16_t buffer[VGA_WIDTH * VGA_HEIGHT];
uint32_t default_color;
struct icon *backgound;
struct font *font;
char line[256];
};
@ -62,3 +66,4 @@ void terminal_set_default_bg_color(uint32_t fg_color);
void terminal_change_default_fg_color(uint32_t color);
uint32_t terminal_get_default_color(void);
uint8_t terminal_get_char(int column, int row);
void terminal_remove_last_char(void);