From 46b2bcef7ccf05e9e273c7ec3e8c3ed0a1cba85c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 13 Apr 2017 17:33:17 -0400 Subject: comment --- Pty.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Pty.hs') diff --git a/Pty.hs b/Pty.hs index 3d62e96..e1da2b4 100644 --- a/Pty.hs +++ b/Pty.hs @@ -22,6 +22,8 @@ runWithPty cmd params a = bracket setup cleanup go (p, ph) <- spawnWithPty Nothing True cmd params (maybe 80 Console.width sz, maybe 25 Console.height sz) _ <- installHandler windowChange (Catch (forwardresize p)) Nothing + -- Set the pty's terminal attributes to the same ones that + -- the outer terminal had. System.Posix.Pty.setTerminalAttributes p as Immediately -- This is similar to cfmakeraw(3). let masteras = as -- cgit v1.2.3