[fpc-devel] Output flush on pipes

Daniël Mantione daniel.mantione at freepascal.org
Mon May 15 08:39:24 CEST 2006



Op Mon, 15 May 2006, schreef Martin Schreiber:

> On Monday 15 May 2006 07.51, Daniël Mantione wrote:
> > Op Mon, 15 May 2006, schreef Martin Schreiber:
> > > On Monday 15 May 2006 07.29, Daniël Mantione wrote:
> > > > Op Mon, 15 May 2006, schreef Martin Schreiber:
> > > > > How do FPIDE and Lazarus solve the problem?
> > > >
> > > > The IDE retrieves the messages through the comphook unit.
> > >
> > > And the output from a console program as debuggee?
> >
> > You mean the Debug -> Output window?
> >
> Yes.
> 
> > The IDE reads the user screen contents and displays it inside the output
> > window. Under Linux the output window is only functional under vcsa
> > display, because otherwise you cannot read from the screen.
> >
> 
> Does it work on win32 with GDB? 
> Do you think it is possible without libgdb (GDB is connected via pipes)?

Using libgdb, the compiler can communicate with gdb without mixing program 
output and debugger output. I think this is also possible if you connect 
to gdb via pipes, since gdb can attach to already started programs.

> Probable I have to build my own PTY substitute for win32 with AllocConsole, 
> AttachConsole and ConsoleScreenBuffers. As far as I know MS technologies this 
> is a work of several weeks...
> Arghh, I see AttachConsole does not work for win98 **%&*&**%!!!!!

Doesn't look that funny, indeed :(

Daniël


More information about the fpc-devel mailing list