KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have been looking for an equivalent to kbhit() and I have read several forums on this subject, and the majority seem 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 a 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() .
Tags (comma-separated)
Save Edits
Cancel