Ticket #1417 (closed proposal: fixed)
Add pseudoterminal support to the unix package
| Reported by: | bos@… | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Not GHC |
| Component: | libraries/unix | Version: | 6.6.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

