I have a starter question.
I have a starter question.
In console app mode, writeln always add a new line, how can i update an exist line?
I dont want to introduce a third component.
Thank you.
In console app mode, writeln always add a new line, how can i update an exist line?
I dont want to introduce a third component.
Thank you.
There are also Windows ports of the old DOS CRT unit if to you need it to be more flexible. Search for wincrt.
ReplyDeleteZhan Wang Also you can write #13 to move cursor to the beginning of line:
ReplyDeleteprogram Project1;
{$APPTYPE CONSOLE}
begin
Write('Some text');
Write(#13'New text');
Readln;
end.
Try my Console unit. It has GotoXY, WhereX, WhereY, ClrEol, ClrScr, etc.: rvelthuis.de - Rudy's Delphi Corner - Console unit
ReplyDelete