All the mucky JLine interfacing code
Converts something with a scoped apply
method into
something which can be similarly used in a for-comprehension
Lets you turn on signal handling within a certain block, attaching a callback to the handler and then turning it properly off again when the block exits.
Created by haoyi on 8/29/15.
Everything to do with the interaction of the Ammonite REPL with the user and the terminal. Interfacing with ammonite-terminal (or with JLine)