mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Handle output to stderr
This commit is contained in:

committed by
Patrik Svensson

parent
9312663bde
commit
a1050fc676
@ -15,5 +15,17 @@ namespace Spectre.Console
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsStandardError(this TextWriter writer)
|
||||
{
|
||||
try
|
||||
{
|
||||
return writer == System.Console.Error;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user