Loading menu.c +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ char *menu_prompt(const menu_item *items, const unsigned int num_menu_items) { } printf("%s\n", items[i].title); } // todo test (+ fix) all of this character grabbing stuff in windows - use conio.h as included above char key_pressed = (char)getchar(); // with terminal set to raw mode, this will no longer wait for Enter key; note that Enter key is handled with \n case if (key_pressed == '\033') { Loading Loading
menu.c +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ char *menu_prompt(const menu_item *items, const unsigned int num_menu_items) { } printf("%s\n", items[i].title); } // todo test (+ fix) all of this character grabbing stuff in windows - use conio.h as included above char key_pressed = (char)getchar(); // with terminal set to raw mode, this will no longer wait for Enter key; note that Enter key is handled with \n case if (key_pressed == '\033') { Loading