[fpc-pascal]CR / CRLF problem when redirecting to file
John Coppens
john at jcoppens.com
Sun Sep 14 17:48:28 CEST 2003
Hello all,
In Linux, when redirecting FPC output to a file, I found that after 25
lines, CR characters are being added, as if in DOS:
program TestCR;
uses
CRT;
var
i: integer;
begin
for i := 1 to 50 do
writeln('The quick brown fox jumps over the lazy dog''s back ', i);
end.
when doing a ./testcr > testcr.txt
CR's appear on line 25 and after. (This seems to profoundly confuse some
terminal windows, which change mode and have to be 'reset').
John
More information about the fpc-pascal
mailing list