check user doc at: https://code.jsoftware.com/wiki/Guides/Interrupt
*** ctrl+c in the term window will interrupt a running J program and will cause output in the JHS session window in the browser. An easy way to see this is to run a sentence that will sleep. And then break the sleep by doing ctrl+c twice. That is: in the browser window do: 6!:3[60 NB. sleep for a minute in the server term window do: ctrl+c and then do it a second time (2 required to break a sleep) you should see that the sleep has been broken as indicated by output in the browser window *** warning There are some bugs in break with JHS in 901 and 902. They have been fixed in the latest 903. A break when J is running works properly. But a break if J is waiting for JHS input will crash. On Thu, Apr 8, 2021 at 11:06 AM cilz <[email protected]> wrote: > Thanks, got it! > > However in the host term window the statement "Ctrl+c here signals an > interrupt to J." is confusing because (at least for my linux setup) it > doesn't do anything or am I missing something? > > Best, > > Le 08/04/2021 à 16:22, Eric Iverson a écrit : > > Perhaps there is confusion between the JHS server task that runs in a > host > > term window and the JHS client task that runs in the browser. > > > > In the JHS browser you can run J sentences and see results. The normal J > > repl. In the browser you can run sentence: exit '' NB. end the JHS > session > > and end the JHS server. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
