How to know size of console window in Delphi?

How to know the size of the console window (in characters) in Delphi 2010?

Doing something like a progress bar in a console program. A new line is displayed over the old one (without newline). Sometimes a new string is shorter than old, and from under it "sticks" part of the old. In General, we need to calculate how many characters remain before end-of-line and "score" them with a space.
August 19th 19 at 23:22
1 answer
August 19th 19 at 23:24
Solution

Find more questions by tags DelphiPascalTerminal