Handle output to stderr

This commit is contained in:
Bastian Eicher
2021-02-12 10:57:37 +01:00
committed by Patrik Svensson
parent 9312663bde
commit a1050fc676
4 changed files with 21 additions and 4 deletions

View File

@@ -49,6 +49,11 @@ namespace Spectre.Console
return System.Console.IsOutputRedirected;
}
if (_profile.Out.IsStandardError())
{
return System.Console.IsErrorRedirected;
}
// Not stdout, so must be a TTY.
return true;
}