SyntaxFix
Write A Post
Hire A Developer
Questions
As said above getch() is in the ncurses library. ncurses has to be initialized, see i.e. getchar() returns the same value (27) for up and down arrow keys for this
getch()
ncurses