
Am 18.03.2017 um 23:34 schrieb Brandon Allbery:
On Sat, Mar 18, 2017 at 6:27 PM, Ben Franksen
wrote: System.IO.hSetBuffering is your friend
Except when it's your enemy: https://github.com/commercialhaskell/stack/issues/2884 see also http://tunes.org/~nef/logs/haskell/17.03.18 at 02:48:19 and following.
This conflation is stupid, prone to cause problems when multiple processes are involved, and needs to go away. Trying to hide the difference between buffering and tty mode from users just causes problems, because buffering is process local but the tty mode is shared between all processes using the tty.
I don't understand. """ geekosaur commented on 30 Dec 2016 some ghc versions back, ghc's Unix runtime started conflating NoBuffering with stty -icanon """ What exactly is meant here with "conflate"? When you turn off buffering for stdin, then of course backspace cannot work. That should be clear. Cheers Ben