Well, Ctrl-C already breaks out of execution so seems like a good starting point. At the moment ctrl-c will only break out of something if it's busy for 1/4 sec after you press ctrl-c, so you'll only get into it if the code has basically hung.
To be honest, if you want to talk to Espruino via the Web IDE it's got to send a control character via the terminal anyway - for the moment it might as well be ctrl-c :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well, Ctrl-C already breaks out of execution so seems like a good starting point. At the moment ctrl-c will only break out of something if it's busy for 1/4 sec after you press ctrl-c, so you'll only get into it if the code has basically hung.
To be honest, if you want to talk to Espruino via the Web IDE it's got to send a control character via the terminal anyway - for the moment it might as well be ctrl-c :)