From cf9eb1f6d1dd9a5a52a9604bff60dcbb766825fe Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 13 Apr 2017 15:45:42 -0400 Subject: use posix-pty, and forward SIGWINCH I discovered the posix-pty library while looking for a way to forward SIGWINCH to the slave pty. It's taken care of a lot of nasty pty handling details, so let's use it! Unfortunately, this broke control-d exiting debug-me, which used to work great. I think that the problem is that readPty never returns B.empty, even on control-d. Or perhaps, posix-pty is doing something to the pty that prevents control-d getting through. I kept all the withoutMode code; at least withoutMode EnableEcho is still needed. This commit was sponsored by Jochen Bartl on Patreon. --- debug-me.cabal | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debug-me.cabal') diff --git a/debug-me.cabal b/debug-me.cabal index cf9143c..88e36ac 100644 --- a/debug-me.cabal +++ b/debug-me.cabal @@ -29,6 +29,8 @@ Executable debug-me , process (>= 1.4) , async (>= 2.1) , stm (>= 2.4) + , posix-pty (>= 0.2.1) + , terminal-size (>= 0.3) Other-Modules: Hash Pty -- cgit v1.2.3