Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Kbhit() and control-C

  1. May 21, 2004 #1
    I have a programming running that waits for keyboard input. The problem is that when I press control-C to exit the program I get an error. I believe it is because the keyboard was pressed but the program is exiting before it can execute the code that is called when kbhit() is true. Any ideas.<br />
    <br />
  2. jcsd
  3. May 22, 2004 #2


    User Avatar
    Staff Emeritus

  4. May 22, 2004 #3

    thanks for the help.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook