I've done something like this by using Haskeline.MonadException.handle, and then using throwTo to interrupt Haskeline.getInputLine. Unfortunately it wipes out the contents of the input, so it wouldn't be very good for you, unless you can have haskeline save it. I too would like a way to interrupt and resume getInputLine without messing up its state. On Tue, Jan 6, 2015 at 1:57 PM, Rob Leslie <rob@mars.org> wrote:
Greetings,
Does anyone have a suggestion on using Haskeline in an environment where another thread may be writing messages to the terminal -- is it possible to somehow print incoming messages above the input line without disturbing the input line?
Thanks for any advice.
-- Rob Leslie rob@mars.org
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe