Use PlainText when writing to a host that doesn't support VT (#16092)

This commit is contained in:
Dongbo Wang 2021-09-15 10:38:26 -07:00 committed by GitHub
parent 4c958d8631
commit fd3579badb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,7 +234,7 @@ namespace System.Management.Automation.Host
private static bool ShouldOutputPlainText(bool isHost, bool? supportsVirtualTerminal)
{
var outputRendering = OutputRendering.Ansi;
var outputRendering = OutputRendering.PlainText;
if (supportsVirtualTerminal != false)
{