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.

Comments

  1. There are also Windows ports of the old DOS CRT unit if to you need it to be more flexible. Search for wincrt.

    ReplyDelete
  2. Zhan Wang Also you can write #13 to move cursor to the beginning of line:
    program Project1;
    {$APPTYPE CONSOLE}
    begin
    Write('Some text');
    Write(#13'New text');
    Readln;
    end.

    ReplyDelete
  3. Try my Console unit. It has GotoXY, WhereX, WhereY, ClrEol, ClrScr, etc.: rvelthuis.de - Rudy's Delphi Corner - Console unit

    ReplyDelete

Post a Comment