From 8ebf584bbb43584b671b79d5166e00268a7c9661 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 25 Sep 2019 22:57:33 +0200 Subject: Fixed several TTY bugs and improved VESA detection --- src/kernel/input/ps2/keyboard.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/kernel/input/ps2') diff --git a/src/kernel/input/ps2/keyboard.c b/src/kernel/input/ps2/keyboard.c index e092630..100c0d8 100644 --- a/src/kernel/input/ps2/keyboard.c +++ b/src/kernel/input/ps2/keyboard.c @@ -37,10 +37,8 @@ void keyboard_handler(struct regs *r) { scan_code = receive_b(0x60); - if (scan_code & 0x80) { - // Release - } else { - terminal_put_char(keymap[scan_code]); + if (!(scan_code & 0x80)) { + terminal_put_keyboard_char(keymap[scan_code]); } } -- cgit v1.2.3