-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: improve handling of interrupt signal in REPL
The input scanning is now performed in a sub goroutine and the interrupt is listened in another goroutine, either to cancel Eval or to cancel the current line scan. Entering a '\n' after a 'Ctrl-C` to get the prompt is not necessary anymore.
- Loading branch information
Showing
1 changed file
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters