| If your app is a console app the console receives the key events and
sends
| them to your stdin but when it sees ctrl-c it interrupts your app
instead.
Thanks Nick. That makes sense. But the case of cmd.exe, for example,
cntrl-c at the c:\ prompt will just bring you to another prompt and not
close down cmd.exe. And if you do dir /s and do a ctrl-c, it interupts
the
dir internal command, so it seems as if console is passing something to
cmd.exe, not just killing the process. What am I missing?