aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/input/ps2
diff options
context:
space:
mode:
authorMarvin Borner2019-09-25 22:57:33 +0200
committerMarvin Borner2019-09-25 22:57:33 +0200
commit8ebf584bbb43584b671b79d5166e00268a7c9661 (patch)
tree466abea4e6da201e7b432d7394e1bf21cbbe1d98 /src/kernel/input/ps2
parent16b8a48d1de16a5982cf983a282832fd4ed01f85 (diff)
Fixed several TTY bugs and improved VESA detection
Diffstat (limited to 'src/kernel/input/ps2')
-rw-r--r--src/kernel/input/ps2/keyboard.c6
1 files changed, 2 insertions, 4 deletions
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]);
}
}