A
A
artem782017-01-27 17:52:17
Delphi
artem78, 2017-01-27 17:52:17

How to find out the size of the console window in Delphi?

How to get console window size (in characters) in Delphi 2010?
I'm doing something like a progress bar in a console program. The new line is displayed on top of the old one (without a newline). Sometimes the new line is shorter than the old one and part of the old one "sticks out" from under it. In general, you need to count how many characters remain until the end of the line and "score" them with a space.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2017-01-27
@artem78

I suspect that this function:
https://msdn.microsoft.com/ru-ru/library/windows/d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question