CRT Documentation: Reference

CrtEventProc

[This variable does not have a corresponding DOS variable.]

Allows customized handling of console events.

CrtEventProc: TCrtEventProc = nil;

Remarks

By default this variable is nil. While nil, the Crt unit attempts to react as similar as possible to the expected behavior under Borland Pascal. You may override this default behavior by implementing your own TCrtEventProc function and pointing CrtEventProc to it. Read the documentation on TCrtEventProc for details and caveats to consider when implementing your own handler.

See Also

Crt Overview, TCrtEventProc