|
|
getch()
from NCurses: https://www.gnu.org/software/ncurses/ (A library for doing terminal based interactions on POSIX systems). On Windows, you may be looking for PDCurses, which is basically the same thing ported to said platform (Google it up). Unfortunately, you can't really expect a cross-platform method for this. The other problem is this that you can't use cout
and etc, only the NCurses functions e.g printw
.