From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Can I redirect DOS text output to a graph. screen ? Date: 19 Feb 2000 11:05:57 GMT Organization: Aachen University of Technology (RWTH) Lines: 19 Message-ID: <88ltel$9tu$1@nets3.rz.RWTH-Aachen.DE> References: <88kcdq$ial$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 950958357 10174 137.226.32.75 (19 Feb 2000 11:05:57 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 19 Feb 2000 11:05:57 GMT User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586)) Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com arcadepreserv AT hotmail DOT com wrote: > I have now understood that there is no way I can decode the output from > the backend in my frontend. Is there then a way to redirect the output > so that it is shown on the graphical screen, which I use for the > frontend ? You can use popen(), but that only works if your backend app writes to its standard output channel, instead of directly to the screen. And you'll only get the output after the backend program has terminated. DOS not being able to run several tasks (like your frontend and backend applications), that's as far as you can possibly get. If your backend writes directly screen, there's no way to capture its output, short of reinventing half of Windows' 'Virtual DOS Machine' concept, I think. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.