Re: Wrapping an Interactive Unix Executable (update)
Re: Wrapping an Interactive Unix Executable (update)
- Subject: Re: Wrapping an Interactive Unix Executable (update)
- From: Steven Palm <email@hidden>
- Date: Sat, 18 Dec 2004 00:27:49 -0600
On Dec 17, 2004, at 3:59 PM, Erik Mendoza wrote:
I take it you meant I should add a carriage return to the input
string? Well, I did, and lo and behold it worked! However, the
output is mangled, and in different ways each time. I think this may
have to do with the fact that the Unix app outputs a number of lines
of output, as opposed to just one (sort of like ls). Hopefully this
problem won't take too long to figure out.
Yes, that is what I meant. Most command line utils won't process the
input buffer until you terminate it. I wonder if you'd have any luck
setting the environment variables in the NSTask before you launch it,
in particular to maybe set the TERM variable to dumb or something
similar so the program doesn't try to do any fancy output formatting...
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden