<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 23.10.2013 09:59, ListMember wrote:<br>
</div>
<blockquote cite="mid:526773B8.9060502@letterboxes.org" type="cite">Hello,
<br>
<br>
I am trying to find where WriteLn is declared; but, apparently,
WriteLn is among the select few that Lazarus will ignore 'Find
Declaration' requests --at least that's how it behaves (latest
Lazarus stable) on my side.
<br>
<br>
My ultimate goal, after finding where it is declared, is to
locally modify that part of the sources so that (instead of
writing to the console) it will use a global callback to display
whatever WriteLn'ed in a TMemo.
<br>
<br>
Or, is there already an alternative to redirect console output to
the running GUI?
<br>
<br>
--
<br>
_______________________________________________
<br>
Lazarus mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
</blockquote>
<font face="Liberation Sans">There was already a discussion</font>
on this maillist - try to search "[fpc-devel] StdOut capture for FPC
RTL"<br>
It is possible to create pipe, replace TextRec(output).Handle with
pipe handle and rewrite() that output.<br>
Gui thread just reads from the read end of the pipe and updates via
Syncronize() whatever you want (memo, or even synedit).<br>
But you need to rewrite output for every thread you start later.<br>
<br>
regards,<br>
Anton<br>
</body>
</html>