blob: f3ccbd96f2c74287193ba24461c84cd8de515da6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <kernel/input/input.h>
#include <kernel/timer/timer.h>
char getch()
{
keyboard_char_buffer = 0;
while (keyboard_char_buffer == 0) {
timer_wait(1); // IDK why!
}
return keyboard_char_buffer;
}
|