feat: kgets()
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user