-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How cancel a message in Io's REPL without leaving the REPL? #441
Comments
AFAIK, this is not implemented by default. But you can add your own system interrupt handler by implementing |
Now I understand why python has control-c and control-d. I guess it would be nice if Io worked the same way. |
Hey, so glad to get a response. :-) Tried to hang out on IRC #io, but something most have gone wrong... @ales-tsurko |
Here we go: Io> System getSlot("userInterruptHandler") code
==> method(writeln("\n current coroutine") ;
Scheduler currentCoroutine showStack ;
Scheduler yieldingCoros foreach(coro, writeln(" coroutine ", coro label) ;
coro showStack) ;
self exit)
Io> BTW, @stevedekorte how about adding an official chat on Discord or somewhere else? |
Thanks @ales-tsurko!
Re official chat: What about a channel on gitter? It aligns well with GutHub and has some message history. |
I'm using Io's REPL to get more familiar with the language.
When I issue a loop which - by accident - doesn't have a break condition, I have to stop the loop somehow.
Say, I issue in its simplest way
How can I stop the loop with the keyboard without killing the whole REPL?
Ctrl-C stops the loop, but kills normally the REPL as well. Is there a way to stay in Io's REPL after Ctrl-C?
The text was updated successfully, but these errors were encountered: