feat: kgets()

This commit is contained in:
Karina
2025-12-28 00:10:18 +04:00
parent 794dae7084
commit d0d025dd90
6 changed files with 67 additions and 15 deletions
+1
View File
@@ -14,5 +14,6 @@ void console_set_color(u32 color);
void console_set_cursor_pos(SG_Point *p);
void kprint(const char *str);
void kprintf(const char *fmt, ...);
void kgets(char* buff, u32 lim);
#endif
+9
View File
@@ -3,6 +3,15 @@
#include <types.h>
#define KB_BUFF_SIZE 256
typedef struct {
char buffer[KB_BUFF_SIZE];
u16 head;
u16 tail;
} kb_buffer;
extern kb_buffer kb_buf;
void kb_handler(Registers *regs);
#endif