[Lazarus] WriteLn back to the GUI
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Wed Oct 23 15:38:41 CEST 2013
Hans-Peter Diettrich wrote:
> ListMember schrieb:
>
>> I'd rather find the unit where WriteLn() procedure is defined and
>> alter it once and recompile FPC/Lazarus.
>>
>> But, I just can't locate where WriteLn procedure is defined. I did a
>> grep (equivalent in Windows) but came up with nothing usable.
>
> The Write... procedures are compiler magic, that's why you couldn't find
> the declarations.
>
> A redirection should be possible by changing the Output variable, used
> when no FILE is given in an Write statement. At least it's so in Delphi,
> and there also existed instructions on how to write your own text file
> handler (for redirecting output to whatever target).
This also takes us back to the point discussed a few weeks ago, which is
that Lazarus doesn't really have a component optimised for line-by-line
output and possibly input, i.e. wrapping a unix-style shell or a
terminal emulator.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list