Commit 851bac90 authored by Chris's avatar Chris
Browse files

safeguarding against windows incompatibility (wip)

parent 1e88ba42
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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') {