On Saturday, 6 October 2012 at 14:50:08 UTC, Adam D. Ruppe wrote:
IIRC it is very easy to do this on Windows as there's no need to change the console mode.
Windows already has getch() in one of its system libraries or C runtime, and I'm fairly sure it has kbhit() somewhere too. The easiest thing to do would just be to link with those.