title: How to detect key presses in a Linux C GUI program without prompting the user?
body: <p>how to detect a keyboard event in C without prompting the user in linux? That is the program running should terminate by pressing any key.
  can anyone please help with this?</p>