I want to output some characters in a C # console application and then rewrite them, thereby changing the characters in the position already taken in the command window. So, for example, I could show progress in percentages of 10%, 20%, 30% (but in the same place). How can i do this?
See Writing a String at the Same Position Using Console.Write in C # 2.0
If you type the character '\ r', the cursor will return to the current line, for example.
Console.Write("10%\r"); // then.. Console.Write("20%\r");
Source: https://habr.com/ru/post/1735214/More articles:Setting up gendarme rules - gendarmeRegular expression for matching pairs of words connected to colons - regexWhat does the frame warning come from? - javascript320 addiction problem - iphoneHow to rewrite Webconfig connection string at runtime - vb.netHow to set default form in vb.Net? - vb.netHow can I use NUnit with an ASP.NET website (not a web project)? - asp.netProblem using \ LaTeX \ includegraphics with some PDF files - includeIterating over classes in a jar file - javaWhen do you define an index in decreasing order? - indexingAll Articles