Writing string at the same position using Console.Write in C# 2.0

前端 未结 2 2032
天命终不由人
天命终不由人 2020-11-29 07:56

I have a console application project in C# 2.0 that needs to write something to the screen in a while loop. I do not want the screen to scroll because using Console.Write or

2条回答
  •  渐次进展
    2020-11-29 08:46

    Use Console.SetCursorPosition to set the position. If you need to determine it first, use the Console.CursorLeft and Console.CursorTop properties.

提交回复
热议问题