only works as expected under user32 console
but complely breaks the unix console
culprit is not the patch, is that conhost is closed with ctrl-c when processed input is turned off
(without the patch on unix console, there are unwanted cursor movement, but after hitting ctrl-c one can still do something; with the patch cmd is "frozen")
there at least two issues to consider:
1. ReadConsole with control on unix console doesn't report ctrl-c 2. cmd shouldn't freeze when the console has been closed
either one of 1 or 2 must be supplied before accepting this patch
apart from that, mostly stylistic remarks