Page 1 of 1

How to Capture content of Console?

Posted: Mon Jun 03, 2024 7:26 pm
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

Re: How to Capture content of Console?

Posted: Mon Jun 03, 2024 8:29 pm
by infratec
this looks more like stderr since stdout.

Try to capture the error out.

Re: How to Capture content of Console?

Posted: Tue Jun 04, 2024 5:07 pm
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

Re: How to Capture content of Console?

Posted: Tue Jun 04, 2024 6:34 pm
by infratec
As usual: provide a working example

I don't know what you are exactly doing.