Xojo Conferences

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.
// watch for Control-C on Mac
call SignalHandlerMBS.SetFlagHandler(2)

dim ende as boolean = false
if SignalHandlerMBS.IsFlagSet(2) then
Print "Flag 2 set. Existing..."
ende = true
end if

DoEvents 1
loop until ende
Notes: The signal is catched, a flag is set and you can ask later in your normal application flow for the result.

Feedback, Comments & Corrections

The biggest plugin in space...

MBS FileMaker Plugins