parent
09f07e8b04
commit
bdfc759350
1 changed files with 9 additions and 2 deletions
|
@ -29,9 +29,16 @@ namespace Microsoft.DotNet.Archive
|
|||
string line = $"{value.Phase} {progress}%";
|
||||
if (value.Phase == _currentPhase)
|
||||
{
|
||||
Console.Write(new string('\b', _lastLineLength));
|
||||
if (Console.IsOutputRedirected)
|
||||
{
|
||||
Console.Write($"...{progress}%");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Write(new string('\b', _lastLineLength));
|
||||
Console.Write(line);
|
||||
}
|
||||
|
||||
Console.Write(line);
|
||||
_lastLineLength = line.Length;
|
||||
|
||||
if (progress == 100)
|
||||
|
|
Loading…
Add table
Reference in a new issue