[Bf-committers] New feature: Console output space type (request for input).

Jacques Beaurain jacques.beaurain at gmail.com
Tue Apr 18 05:23:37 CEST 2006


I just posted a patch on my site which may help people look at the
code and debug into it.

http://jb-online.net/?p=9

On 4/17/06, Jacques Beaurain <jacques.beaurain at gmail.com> wrote:
> Hi,
>
> I need help! Any Linux gurus with some time on their hands?
>
> I am having more trouble than I thought I would getting this to work
> on Linux. There are many examples out there for redirecting stdout and
> stderr by forking another process and then using pipes to divert the
> streams, but I cannot find a single one that duplicates what I managed
> to do for this in Windows (redirect the std streams within the same
> process). I attached drawstdout.c which contains most of the code that
> implements the functionality of the Console Output window.
>
> The relevant code is at the top. At program startup I call
> init_stdthreads and on shutdown shutdown_stdthreads gets called. After
> trying a couple of things I now gave up with my code being in the
> state in the attached file. Using getc in the threads instead of
> ReadFile, it immediately returns EOF.
>
> Thanks,
> J
>
>
>


--
"On two occasions I have been asked, 'Pray, Mr. Babbage, if you put
into the machine wrong figures, will the right answers come out?' I am
not able rightly to apprehend the kind of confusion of ideas that
could provoke such a question."
Charles Babbage


More information about the Bf-committers mailing list