assigns the procedure specified by PredSpec as the interrupt handler for the interrupt identified by N (a number or a name). Some interrupts cannot be caught by the user (e.g. the kill signal), trying to establish a handler for them yields an error message. Note that PredSpec should be one of the predefined handlers. The use of general user defined predicates is deprecated because of portability considerations.set_interrupt_handler(N, PredSpec)
An interrupt handler has one optional argument, which is the interrupt number. There is no argument corresponding to the error culprit, since the interrupt has no relation to the currently executed predicate. A handler may be defined which takes no argument (such as when the handler is defined for only one interrupt type). If the handler has one argument, the identifier of the interrupt is passed to the handler when it is called.get_interrupt_handler(N, PredSpec, HomeModule)
will exit the ECLiPSe system when ∧C is pressed.?- set_interrupt_handler(int, default/0)