On Sat, Mar 18, 2017 at 7:57 PM, Ben Franksen <ben.franksen@online.de> wrote:
As long as you leave control over these things to the terminal, yes. But
what if your program wants to control that itself? E.g. react to
keystrokes, rather than edited lines, as the OP seemed to want?

https://downloads.haskell.org/~ghc/8.0.2/docs/html/libraries/unix-2.7.2.1/System-Posix-Terminal.html

Admittedly some wrappers would be nice... but with care, lest you reproduce the same issues stack is having.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net