Hotkey to stop REPL?

Viewed 3754

Is there a hotkey to stop/exit the Scala REPL ?

Example: I start the Scala REPL from SBT with command console, then do something stupid like an endless loop and want to end the REPL without closing the shell at all. Something like Ctrl+C, Ctrl+D or Ctrl+Z (which all do not work).

Update: Used OS: Windows 7 64 Bit.

Ctrl+D exists SBT and the REPL, but Ctrl+D does NOT exit the REPL when I am in an endless loop like

while(true) prinln("test")

Is there a way to get out of the endless loop with a hotkey without closing the shell ? Or is this not possible because the REPL will not react to hotkeys until the loop is through (which will, of course, not happen in this case) ?

2 Answers
Related