Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.How to catch Control-C on Mac or Linux in a console app?
Answer: You can use SignalHandlerMBS class for this.
The signal is catched, a flag is set and you can ask later in your normal application flow for the result.