From 8a5e63770119849fa63f24608097524205e630c4 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 23 Mar 2015 09:40:10 +0100 Subject: [PATCH] added comments --- 21-shell/drivers/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/21-shell/drivers/keyboard.c b/21-shell/drivers/keyboard.c index 7090a8f..416243f 100644 --- a/21-shell/drivers/keyboard.c +++ b/21-shell/drivers/keyboard.c @@ -31,10 +31,11 @@ static void keyboard_callback(registers_t regs) { kprint_backspace(); } else if (scancode == ENTER) { kprint("\n"); - user_input(key_buffer); + user_input(key_buffer); /* kernel-controlled function */ key_buffer[0] = '\0'; } else { char letter = sc_ascii[(int)scancode]; + /* Remember that kprint only accepts char[] */ char str[2] = {letter, '\0'}; append(key_buffer, letter); kprint(str);