From f085da76c1b41b32f0c7e0967b600955141026aa Mon Sep 17 00:00:00 2001 From: picture-vision <94039505+picture-vision@users.noreply.github.com> Date: Thu, 13 Oct 2022 11:02:59 +0200 Subject: [PATCH] Added Suckless Simple Terminal (st) to list of ansi terminals --- src/Spectre.Console/Internal/Backends/Ansi/AnsiDetector.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Spectre.Console/Internal/Backends/Ansi/AnsiDetector.cs b/src/Spectre.Console/Internal/Backends/Ansi/AnsiDetector.cs index 58c512b..eb30212 100644 --- a/src/Spectre.Console/Internal/Backends/Ansi/AnsiDetector.cs +++ b/src/Spectre.Console/Internal/Backends/Ansi/AnsiDetector.cs @@ -24,6 +24,7 @@ internal static class AnsiDetector new Regex("linux"), // Linux console new Regex("konsole"), // Konsole new Regex("bvterm"), // Bitvise SSH Client + new Regex("^st-256color"), // Suckless Simple Terminal, st }; public static (bool SupportsAnsi, bool LegacyConsole) Detect(bool stdError, bool upgrade) @@ -131,4 +132,4 @@ internal static class AnsiDetector } } } -} \ No newline at end of file +}