[Haskell-cafe] Re: Creating pseudo terminals

Tom Hawkins tomahawkins at gmail.com
Mon Apr 30 21:38:06 EDT 2007


On 4/29/07, Georg Sauthoff <g_sauthoff at web.de> wrote:
> On 2007-04-29, Tom Hawkins <tomahawkins at gmail.com> wrote:
>
> Hi,
>
> [..]
> > I haven't done this before in any language, so any tips would be
> > appreciated.  From what I gather, a call to posix_openpt or openpty
> > returns a master and a slave, or alternatively opening /dev/ptmx
> > followed by calls to grantpt and unlockpt.
>
> well, then I suggest 'Stevens, Advanced programming in the unix
> environment' for basic pseudo terminal programming.

Thanks for the reference.

Does Haskell's standard library support pseudo terminals, or will I
have to write foreign interfaces for grantpt and unlockpt?

-Tom


More information about the Haskell-Cafe mailing list