Ticket #1417 (closed proposal: fixed)
Add pseudoterminal support to the unix package
|Reported by:||bos@…||Owned by:|
|Type of failure:||Difficulty:||Unknown|
|Test Case:||Blocked By:|
I propose to enhance the unix package by adding pty support:
-- | @openPseudoTerminal@ creates a pseudoterminal (pty) pair, and -- returns the newly created pair as a (@master@, @slave@) tuple. openPseudoTerminal :: IO (Fd, Fd)
-- | @getSlaveTerminalName@ calls @ptsname@ to obtain the name of the -- slave terminal associated with a pseudoterminal pair. The file -- descriptor to pass in must be that of the master. getSlaveTerminalName :: Fd -> IO FilePath?
This is all that's required to get pseudoterminals working on Unix-like systems.