Equivalent to Windows getch() for Mac/Linux crashes
Have you looked in <curses.h> to see what the getch() function does? Hint: OSX and Linux are not the same as Windows. Specifically, as a macro in <curses.h>, we find: #define getch() wgetch(stdscr) Now, there appears, on your system, to be an actual function getch() in the curses library, but it expects stdscr to be … Read more