How do you exit from the repl console in sbt with a background process running? The following hangs:
$ sbt > console Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26). scala> import scala.sys.process._ import scala.sys.process._ scala> "sleep 10000".run res0: scala.sys.process.Process = scala.sys.process.ProcessImpl$SimpleProcess@67219b8c scala> <ctrl-d entered> ...hangs
ctrl-c works, but kills sbt too. I suppose I'm looking for a letter between ctrl-c and ctrl-d.
To leave sbt shell, type exit or use Ctrl+D (Unix) or Ctrl+Z (Windows).
You can exit the REPL by typing Ctrl+D (pressing the Ctrl and D keys at the same time).
Enter :q
to quit the console (it will lead to some sort of hanging), and, then, ctrl+c
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With