mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix clearing console line.
This commit is contained in:
@@ -95,13 +95,7 @@ namespace DiscImageChef
|
||||
|
||||
static void ClearCurrentConsoleLine()
|
||||
{
|
||||
int currentLineCursor = System.Console.CursorTop;
|
||||
|
||||
if(System.Console.CursorTop > System.Console.WindowHeight || System.Console.CursorTop < 0) return;
|
||||
|
||||
System.Console.SetCursorPosition(0, System.Console.CursorTop);
|
||||
System.Console.Write(new string(' ', System.Console.WindowWidth));
|
||||
System.Console.SetCursorPosition(0, currentLineCursor);
|
||||
System.Console.Write('\r' + new string(' ', System.Console.WindowWidth - 1) + '\r');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user