Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Oct : Console application - how to trap control-C?

www.cryer.info
Managed Newsgroup Archive

Console application - how to trap control-C?

Subject:Console application - how to trap control-C?
Posted by:"Brian Cryer" (bria..@127.0.0.1.activesol.co.uk)
Date:Wed, 5 Oct 2005 13:45:30

I have a console application written in Delphi (which regularly checks the
status of something, echoing it to the command line), what I would like to
do is trap control-C/break so I can print a few line summary report before
exiting. I'm hoping this is fairly straight forward, so, how do I trap a
control-c?

Thanks in advance.

    Brian.

Replies:

www.cryer.info
Managed Newsgroup Archive