In groovy shell if you type this:
$ groovysh
Groovy Shell (2.3.7, JVM: 1.7.0_11)
Type ':help' or ':h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
groovy:000> (1..1234567)
and accidentally press Enter, you'll most likely ruin your current session without too much hope to be able to continue. That was a simple example - say you do something like:
(1..123456).collect { 'abc' * 80 }
You get the gist - and obviously you can be doing some things in the console where you have state you want to work with going on. Any way to tell groovy to stop, but not kill groovysh (which Ctrl+C does)?
Or alternatively tell it to print less every time unless more is asked for? Not sure what's possible, if anything - any hints?