aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdio/getch.c
blob: e806013e1a6c2d517bd758fdfa1de108f02ef40b (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;
}