#1417: Add pseudoterminal support to the unix package
---------------------------------+------------------------------------------
  Reporter:  [EMAIL PROTECTED]  |          Owner:         
      Type:  proposal            |         Status:  new    
  Priority:  normal              |      Milestone:  Not GHC
 Component:  libraries/unix      |        Version:  6.6.1  
  Severity:  normal              |       Keywords:         
Difficulty:  Unknown             |             Os:  Unknown
  Testcase:                      |   Architecture:  Unknown
---------------------------------+------------------------------------------
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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1417>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to