I have been looking for an equivalent to kbhit() and I have read several forums on this subject, and the majority seems to suggest using ncurses.
How should I go about checking if a key is pressed in c++ using ncurses.
The function getch() provided by ncurses reads character from the window. I would like to write a function that only checks if there is a key press and then I want to do getch().
Thanks in advance.