mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-29 12:05:47 +08:00
Handle output to stderr
This commit is contained in:
committed by
Patrik Svensson
parent
9312663bde
commit
a1050fc676
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user