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,
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
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. :-(
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
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(),
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
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