Hello! 01.10.2015, 22:33, "HP wei" <hpwe...@gmail.com>: > I try to hit Control-C but it continues to run. > *** How to exit a running words ?
HP wei raises a very good point. Is there a way to interrupt an infinite loop or a long-running word? If such a mechanism is not there in Factor UI, I could share a way to implement it (Windows-specific). It involves running a native background thread with the Ctrl+Break hotkey globally hooked. When the hotkey is triggered, the main thread is interrupted by setting its exception flag. All words running from the Scratchpad should expect this special kind of exception. I'm not too good with Factor yet, so I could not implement this without some serious help/pointers, but I can share the details of the same mechanism implemented elsewhere (an open-source run-time environment). ---=====--- Александр ------------------------------------------------------------------------------ _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk