Hello,
I'm running a DOS mode text program under Wine via a Mac OSX Objective-C/Cocoa program. I use NSTask to run Wine and capture stdin, stdout and stderr via NSPipes. I'm having an issue where output from the DOS mode text program doesn't get to the Objective-C/Cocoa program until after the program ends in Wine. I think this is happening because stdout is buffered.
Is there a way to cause Wine to treat stdout and stderr as unbuffered?
Thanks,
--
Dan
Unbuffered stdout?
Unbuffered stdout?
dkok wrote:
another DOS emulator on your Mac. Wine is a Windows API setup and does
not run command line DOS programs very well.
James McKenzie
Not that I know of. However, you might have more luck using Dosbox orHello,
I'm running a DOS mode text program under Wine via a Mac OSX Objective-C/Cocoa program. I use NSTask to run Wine and capture stdin, stdout and stderr via NSPipes. I'm having an issue where output from the DOS mode text program doesn't get to the Objective-C/Cocoa program until after the program ends in Wine. I think this is happening because stdout is buffered.
Is there a way to cause Wine to treat stdout and stderr as unbuffered?
another DOS emulator on your Mac. Wine is a Windows API setup and does
not run command line DOS programs very well.
James McKenzie
Re: Unbuffered stdout?
James,James McKenzie wrote:dkok wrote:Not that I know of. However, you might have more luck using Dosbox orHello,
I'm running a DOS mode text program under Wine via a Mac OSX Objective-C/Cocoa program. I use NSTask to run Wine and capture stdin, stdout and stderr via NSPipes. I'm having an issue where output from the DOS mode text program doesn't get to the Objective-C/Cocoa program until after the program ends in Wine. I think this is happening because stdout is buffered.
Is there a way to cause Wine to treat stdout and stderr as unbuffered?
another DOS emulator on your Mac. Wine is a Windows API setup and does
not run command line DOS programs very well.
James McKenzie
Thanks for your reply.
DOSBox is a great idea and I just tried it. Unfortunately while the program only runs at a command prompt, running it under DOSBox produces the message "This program cannot be run in DOS mode."
It apparently requires some of the Win32 API, even though it is not graphical.
--
Dan