private void DataReceivedCore(object sender, TextEventArgs e)
{
if(e.Text.Contains("%") || e.Text.Contains("remote: Counting objects"))
SetProgress(e.Text);
else
{
const string ansiSuffix = "\u001B[K";
string line = e.Text.Replace(ansiSuffix, "");
if(ConsoleOutput.IsDisplayingFullProcessOutput)
OutputLog.AppendLine(line); // To the log only, display control displays it by itself
else
AppendOutputLine(line); // Both to log and display control
}
DataReceived(sender, e);
}