aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdio/readline.c
blob: 1bda2528b261208707a5842b10a59ee14453be90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <kernel/input/input.h>
#include <kernel/lib/string.h>

char *readline()
{
	keyboard_clear_buffer();
	while (keyboard_buffer[strlen(keyboard_buffer) - 1] != '\n') {
	}
	return keyboard_buffer;
}