[fpc-pascal] Problems with writing to console
Darius Blaszyk
dhkblaszyk at zeelandnet.nl
Tue Jan 9 23:22:06 CET 2018
Hi,
I have been mixing "writeln(StdOut" and regular writeln in my
application (actually a couple of applications working together) and
found that the output on the console is mangled when I do that. Output
is being overwritten and placed semi randomly on the console. What is
the standard output for writeln? I thought it would be StdOut as the
name suggests. Using StdOut at the same time will not allow colors
(TextColor) from the crt unit to be shown on the console. On the other
hand reading output from the console does require writing to StdOut.
So I guess my question is, How can I use color, and read the output with
a TProcess from the console? If I get a solution for that I will not
need to mix different output text files.
I'm using Windows and FPC 3.0.4 btw. I have not yet tested Linux nor
macOS.
Appreciate any help. TIA!
Rgds, Darius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180109/904901ff/attachment.html>
More information about the fpc-pascal
mailing list