Closed mnewt closed 6 years ago
Definitely high on the list. We need to handle these things: 1) Interrupt when clojure code is running (lumo repl does this so I will look for inspiration there) 2) Send SIGINT signal to the child process (if a command is running) 3) Cancel the pipeline
I agree when no command is running then clearing the command line would be nice.
I started testing some of this in node (without lumo). Unfortunately, lumo has a bug where it doesn't respect SIGINT traps (https://github.com/anmonteiro/lumo/issues/191).
After that is dealt with, it looks like we will need to use node's startSigintWatchdog (https://github.com/nodejs/node/blob/master/src/node_util.cc) to trap during execution.
Implemented and released in 0.2.0
.
Closh doesn't process Ctrl-C while a command is running (maybe it doesn't pass it to the child process?). And when Ctrl-C is pressed at the prompt it exits (is that read-line trapping it?).
Expected outcome is: