handle-ctrl-break


Vocabulary
listener

Word description
If this variable is t, the listener will wrap the user code with calls to enable-ctrl-break and disable-ctrl-break to make it interruptible with C-Break. This includes both compilation and execution phases, so circular vocab import can be interrupted as well as infinite loops.

This only works on Windows, and has no effect on other platforms.

Warning
There were reports that after enabling this feature the Factor process may hang randomly, see https://github.com/factor/factor/issues/2037.


Warning
If user code yields or gets stuck on an asynchronous I/O operation, pressing C-Break will most likely crash the Factor VM.


Definition