[fpc-devel] Output flush on pipes

Daniël Mantione daniel.mantione at freepascal.org
Mon May 15 07:29:20 CEST 2006



Op Mon, 15 May 2006, schreef Martin Schreiber:

> On Sunday 14 May 2006 20.17, Florian Klaempfl wrote:
> > Martin Schreiber wrote:
> > > The problem exists not only for the compiler but for all console
> > > programs. I found no way to display the interactive output in a IDE
> > > window on win32. On Linux I can use a pseudo terminal to get flushed
> > > output from target. There are no pseudo terminals on win32, I must use
> > > pipes. The current 2.0.3 RTL does not flush output on writeln if the
> > > filehandle is a pipe (2.0.2 does!). So the IDE target console window is
> > > unusable on win32 with FPC 2.0.3 RTL and works OK with FPC 2.0.2 RTL.
> >
> > Yes and no :) That's one of speed vs. usability decisions. Believe me,
> > if flush pipes always, people will complain soon that FPC is too slow
> > when writing to pipes.
> 
> How do FPIDE and Lazarus solve the problem?

The IDE retrieves the messages through the comphook unit.

Daniël


More information about the fpc-devel mailing list