Provided Console Control Event explanation as comments in the sim_console code.

This commit is contained in:
Mark Pizzolato 2012-02-28 14:02:49 -08:00
parent 4ce92b4f38
commit 4ab52659be

View file

@ -930,6 +930,13 @@ static HANDLE std_input;
static HANDLE std_output;
static DWORD saved_mode;
/* Note: This routine catches all the potential events which some aspect
of the windows system can generate. The CTRL_C_EVENT won't be
generated by a user typing in a console session since that
session is in RAW mode. In general, Ctrl-C on a simulator's
console terminal is a useful character to be passed to the
simulator. This code does nothing to disable or affect that. */
static BOOL WINAPI
ControlHandler(DWORD dwCtrlType)
{