From d51faeadea3d2e7331cfdffce887b4c3c88eaca4 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Mon, 25 Aug 2025 20:21:05 +1000 Subject: [PATCH] allow ansi redirection --- src/SharpIDE.Application/Features/Run/RunService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SharpIDE.Application/Features/Run/RunService.cs b/src/SharpIDE.Application/Features/Run/RunService.cs index 2cff7ad..4d9a39b 100644 --- a/src/SharpIDE.Application/Features/Run/RunService.cs +++ b/src/SharpIDE.Application/Features/Run/RunService.cs @@ -40,6 +40,8 @@ public class RunService RedirectStandardError = true, EnvironmentVariables = [] }; + processStartInfo.EnvironmentVariables["DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION"] = "1"; + // processStartInfo.EnvironmentVariables["TERM"] = "xterm"; // may be necessary on linux/macOS if (launchProfile is not null) { foreach (var envVar in launchProfile.EnvironmentVariables)