diff --git a/platform/native/ctk/ctk-curses.c b/platform/native/ctk/ctk-curses.c index 84e424422..6cac2218e 100644 --- a/platform/native/ctk/ctk-curses.c +++ b/platform/native/ctk/ctk-curses.c @@ -432,8 +432,9 @@ console_read(void) char ctk_arch_getkey(void) { + char k; console_read(); - char k = keys[keys_out++]; + k = keys[keys_out++]; available--; return k;