diff options
Diffstat (limited to 'src/kernel/lib/stdio/getch.c')
-rw-r--r-- | src/kernel/lib/stdio/getch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/lib/stdio/getch.c b/src/kernel/lib/stdio/getch.c index f3ccbd9..e806013 100644 --- a/src/kernel/lib/stdio/getch.c +++ b/src/kernel/lib/stdio/getch.c @@ -3,9 +3,9 @@ char getch() { - keyboard_char_buffer = 0; - while (keyboard_char_buffer == 0) { - timer_wait(1); // IDK why! - } - return keyboard_char_buffer; + keyboard_char_buffer = 0; + while (keyboard_char_buffer == 0) { + timer_wait(1); // IDK why! + } + return keyboard_char_buffer; }
\ No newline at end of file |