Re: [fpc-pascal] Options for enabling output buffering

2008-12-13 Thread Tomas Hajny
On 12 Dec 08, at 22:12, leledumbo wrote: . . > OK, for a real world apps that's true. I guess I still have to write those > things myself. Btw, is there any difference between code in an > initialization section of a unit with the one at the beginning of a program? The only difference is that

Re: [fpc-pascal] Options for enabling output buffering

2008-12-12 Thread leledumbo
@Michael: Just as Tomas say, FlushFunc gets called when the output goes to console (AFAIK) regardless the SetTextBuf settings. @Tomas: OK, for a real world apps that's true. I guess I still have to write those things myself. Btw, is there any difference between code in an initialization section o

Re: [fpc-pascal] Options for enabling output buffering

2008-12-12 Thread Tomas Hajny
On Fri, December 12, 2008 14:35, Michael Van Canneyt wrote: > On Fri, 12 Dec 2008, leledumbo wrote: > >> >> I'm tired of writing: >> >> uses >> Dos; >> ... >> begin >> TextRec(Output).FlushFunc:=nil; >> ... >> >> all the time in every programming contest I follow. Wouldn't it be >> better to >>

Re: [fpc-pascal] Options for enabling output buffering

2008-12-12 Thread Michael Van Canneyt
On Fri, 12 Dec 2008, leledumbo wrote: > > I'm tired of writing: > > uses > Dos; > ... > begin > TextRec(Output).FlushFunc:=nil; > ... > > all the time in every programming contest I follow. Wouldn't it be better to > provide an option or a define or whatever to enable output buffering? F