summaryrefslogtreecommitdiffhomepage
path: root/Pty.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-13 17:33:17 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-13 17:33:17 -0400
commit46b2bcef7ccf05e9e273c7ec3e8c3ed0a1cba85c (patch)
tree02d44bdf1284333785672a864af4e5e548b84c86 /Pty.hs
parentde2aa41f0ecdea914c44601c4c015d5913f7b6bf (diff)
downloaddebug-me-46b2bcef7ccf05e9e273c7ec3e8c3ed0a1cba85c.tar.gz
comment
Diffstat (limited to 'Pty.hs')
-rw-r--r--Pty.hs2
1 files changed, 2 insertions, 0 deletions
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