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]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to