[ALL] If output is redirected, don't clear the screen first

This commit is contained in:
Matt Nadareski
2016-06-09 23:35:12 -07:00
parent 905f11758a
commit 5b3efe4609
5 changed files with 31 additions and 9 deletions

View File

@@ -43,7 +43,12 @@ namespace SabreTools
// Perform initial setup and verification
_logger = new Logger(true, "database.log");
_logger.Start();
Console.Clear();
// If output is being redirected, don't allow clear screens
if (!Console.IsOutputRedirected)
{
Console.Clear();
}
Setup();
// Credits take precidence over all
@@ -536,6 +541,9 @@ namespace SabreTools
InitStats(inputs, single);
}
// If nothing is set, show the help
Build.Help();
_logger.Close();
return;
}