How to Capture content of Console?

Just starting out? Need help? Post your questions and find answers here.
swhite
Addict
Addict
Posts: 805
Joined: Thu May 21, 2009 6:56 pm

How to Capture content of Console?

Post by swhite »

Hi

When I compile and run my Linux console program it opens the window shown. I would like to capture the contents of this window but cannot find a way to do this. Can anyone suggest how this can be done? I tried ReadConoleData() but it says there is no data.

Thanks,
Simon

Image
Simon White
dCipher Computing
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: How to Capture content of Console?

Post by infratec »

this looks more like stderr since stdout.

Try to capture the error out.
swhite
Addict
Addict
Posts: 805
Joined: Thu May 21, 2009 6:56 pm

Re: How to Capture content of Console?

Post by swhite »

Hi

The only function I can find is the ReadProgramError() but this is only useful if you use RunProgram(). I am using the IDE and Compile with Debugger. I would like to capture this data but not sure how to do it?

Simon
Simon White
dCipher Computing
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: How to Capture content of Console?

Post by infratec »

As usual: provide a working example

I don't know what you are exactly doing.
Post Reply