Keyboard buffer + getline
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
/* term */
|
||||
#define TERM_HISTORY_MAX_LINES 256
|
||||
|
||||
/* kbd */
|
||||
#define KBD_BUFFER_MAX 256
|
||||
|
||||
/* time */
|
||||
#define TIMER_FREQUENCY 1000
|
||||
|
||||
|
||||
@@ -7,7 +7,12 @@
|
||||
#ifndef PS2_H
|
||||
#define PS2_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void keyboard_handler(void);
|
||||
char keyboard_getchar();
|
||||
int keyboard_putchar(char c);
|
||||
int keyboard_getline(char* output, size_t size);
|
||||
|
||||
#define SHIFT_PRESSED_BIT 0b00000001
|
||||
#define ALT_PRESSED_BIT 0b00000010
|
||||
|
||||
Reference in New Issue
Block a user