Thanks for the replies. Some answers:
- No, I do not use any special (escape, UTF, etc.) characters.
- I do a lot of calculation and then dump the result, what I "Select All", "Copy" and Paste to a spreadsheet. So, I do not try to read numbers very fast.
-- Yes, I know I could write it to a file, but then I need to open the file (e.g. a .csv) in the spreadsheet and then there copy/paste it to a sheet, where I have all the charting, etc.
-- Yes, I could also make the whole spreadsheet in fpSpreadsheet, but it has its own challenges.
- I think it is a bug, if the print out to a black and white terminal works OK, but the Lazarus built-in looses some.
- I tried to switch off the error checking, but it made no difference.
- I tried to add flush(Output), but it made no difference.
Here is a very small code:
var i : integer;
begin
{$I-}
for i:=1 to 1000 do
writeln('My number is ', i);
flush(Output);
end.
With/without {$I-} and with/without flush I get 461 lines. If I add Sleep(100) before the
end., then I get 688 lines, and with Sleep(200) I get all the lines. It seems there are some fixed steps, so, I can never get e.g. 500 lines.
I also tried to leave out the text, and used only writeln(i), in which case I got 9057 lines (with a 10 000 loop of course).