From fd3579badbe577f574d497b6571dff2d9f74a230 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Wed, 15 Sep 2021 10:38:26 -0700 Subject: [PATCH] Use `PlainText` when writing to a host that doesn't support VT (#16092) --- .../engine/hostifaces/MshHostUserInterface.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs index cf2dea14a5..ea101ade65 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs @@ -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) {