• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pseudo-terminals and NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pseudo-terminals and NSTask


  • Subject: Pseudo-terminals and NSTask
  • From: Chuck Norris <email@hidden>
  • Date: Sun, 16 Dec 2001 13:35:54 -0800

I need to be able to run a program from within a pty to get a complete terminal environment that some programs require (line discipline, curses support, stty-like stuff in general).

I've been using NSTask up to now, and was hoping to come up with some way to get pty support from within the Cocoa infrastructure. But the only references to that sort of thing that I've found are within the GNUStep code. I'm willing to dig into that to figure it out, but I'm curious what other people have done.

I've been experimenting with stock BSD pty code, but even that is giving me fits. The example code from Stevens (Advanced Programming in the UNIX Environment) doesn't even work, so either something's pretty badly broken, or there is something unique to OSX that I'm omitting. I've read rumors of pty "troubles" under Mac OS X, but since other programs that obviously use ptys are working fine, I presume there's just something I'm not doing right.

Anyone with some insight to get me going in the right direction?

Regards,

Chuck


  • Follow-Ups:
    • Re: Pseudo-terminals and NSTask
      • From: Andrew Mortensen <email@hidden>
  • Prev by Date: Re: Cocoa Documentation on NSFormatter
  • Next by Date: Re: using dragImageForRows:event:dragImageOffset
  • Previous by thread: Re: cocoa-dev digest, Vol 1 #979 - 14 msgs
  • Next by thread: Re: Pseudo-terminals and NSTask
  • Index(es):
    • Date
    • Thread