Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

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

MBS Xojo Chart Plugins