Hmm that's why I asked which version of the compiler you were using to compile the C code. Testing on my Windows 10 box using nim 1.4.2 with the default MingW distribution supplied by the nim archive I don't see the hanging problem when calling `_getch()` twice after `_kbhit()` returns non-zero.
- Error Using _kbhit with .importc Chris3606
- Error Using _kbhit with .importc Araq
- Error Using _kbhit with .importc napalu
- Error Using _kbhit with .importc Chris3606
- Error Using _kbhit with .importc napalu
- Error Using _kbhit with .importc Chris3606
- Error Using _kbhit with .importc enthus1ast
- Error Using _kbhit with .importc Chris3606
- Error Using _kbhit with .importc enthus1ast