This copies over functionality from the echo library that, on Windows, detects if we're running in a MinTTY console, and if so, shells out to stty to disable/enable input echoing instead of hSetEcho/hGetEcho, which are broken on MinTTY.
Thanks for your feedback, @judah. I've shuffled the code around so that withoutInputEcho is now a field of FileOps. I've also made minTTY take a Handle as an argument.
This copies over functionality from the
echo
library that, on Windows, detects if we're running in a MinTTY console, and if so, shells out tostty
to disable/enable input echoing instead ofhSetEcho
/hGetEcho
, which are broken on MinTTY.Fixes #50.