[fpc-pascal] Problems with writing to console
dhkblaszyk at zeelandnet.nl
Tue Jan 9 23:22:06 CET 2018
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
Appreciate any help. TIA!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal