From 33738aeb498a17135d71b987325e17648802ddc1 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 14 Oct 2024 21:26:52 +0300 Subject: [PATCH] Disable progress ansi reporting on linux Some terminals use this code to show notifications instead --- DepotDownloader/Ansi.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DepotDownloader/Ansi.cs b/DepotDownloader/Ansi.cs index b17b5972..6f948849 100644 --- a/DepotDownloader/Ansi.cs +++ b/DepotDownloader/Ansi.cs @@ -31,6 +31,11 @@ static class Ansi return; } + if (OperatingSystem.IsLinux()) + { + return; + } + var (supportsAnsi, legacyConsole) = AnsiDetector.Detect(stdError: false, upgrade: true); useProgress = supportsAnsi && !legacyConsole;