Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-13 Thread Tomas Hajny
On Wed, May 13, 2009 07:07, leledumbo wrote: It works... but only for the first call, after that IOResult gives 103. Does rtl closes stdout handle after every write or what? No, certainly not. As suggested yesterday, you need to implement some of the other Do_* functions, at least Do_Open,

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-12 Thread Tomas Hajny
On Tue, May 12, 2009 05:38, leledumbo wrote: Jonas Maebe-2 wrote: It writes to whatever the text file variable called stdout in rtl/ inc/systemh.inc is assigned to. Standard I/O is indeed buffered, see the routines in rtl/inc/text.inc. The actual writing from the buffer to the associated

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-12 Thread leledumbo
Tomas Hajny wrote: I guess that you should have a look at some of the other Do_??? functions, in particular Do_Open coming to my mind. Unfortunately, the description for these functions in our Wiki (http://wiki.freepascal.org/System_unit_structure) has not been finished yet. :-(

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-12 Thread leledumbo
It works... but only for the first call, after that IOResult gives 103. Does rtl closes stdout handle after every write or what? -- View this message in context: http://www.nabble.com/Where-does-Write%28Ln%29-actually-write-to--tp23380791p23515456.html Sent from the Free Pascal - General

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-11 Thread leledumbo
Jonas Maebe-2 wrote: It writes to whatever the text file variable called stdout in rtl/ inc/systemh.inc is assigned to. Standard I/O is indeed buffered, see the routines in rtl/inc/text.inc. The actual writing from the buffer to the associated file/device is done by FileWriteFunc(),

Re: [fpc-pascal] Where does Write(Ln) actually write to?

2009-05-10 Thread Jonas Maebe
On 05 May 2009, at 06:21, leledumbo wrote: I'm almost there to have Write(Ln) works for my OS. I've made SysInitStdIO call OpenStdIO(Output,fmOutput,StdOutputHandle); and calling Write(Ln) gives no error (i.e. IOResult = 0). But where does it actually write to? If I can access the

[fpc-pascal] Where does Write(Ln) actually write to?

2009-05-04 Thread leledumbo
I'm almost there to have Write(Ln) works for my OS. I've made SysInitStdIO call OpenStdIO(Output,fmOutput,StdOutputHandle); and calling Write(Ln) gives no error (i.e. IOResult = 0). But where does it actually write to? If I can access the buffer, I can display it on the screen. -- View this