Pseudo-terminals and NSTask
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