diff options
Diffstat (limited to 'src/kernel/syscall/actions/sys_getch.c')
-rw-r--r-- | src/kernel/syscall/actions/sys_getch.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/kernel/syscall/actions/sys_getch.c b/src/kernel/syscall/actions/sys_getch.c index f1e4dfb..91ccda7 100644 --- a/src/kernel/syscall/actions/sys_getch.c +++ b/src/kernel/syscall/actions/sys_getch.c @@ -1,10 +1,11 @@ #include <stdint.h> #include <kernel/lib/stdio.h> -#include <kernel/input/input.h> -#include <kernel/lib/lib.h> -#include <kernel/lib/string.h> +#include <kernel/io/io.h> uint32_t sys_getch() { - return (uint32_t)getch(); -}
\ No newline at end of file + sti(); + uint32_t key = getch(); + cli(); + return key; +} |