From 78d49fcd849e007cc2abae44d59a8fa77e65cdc9 Mon Sep 17 00:00:00 2001 From: tznind Date: Sat, 5 Oct 2024 20:18:21 +0100 Subject: [PATCH] Fix algorithm to look for exactly 4 not things like 42 etc. --- Terminal.Gui/Drawing/SixelSupportDetector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Drawing/SixelSupportDetector.cs b/Terminal.Gui/Drawing/SixelSupportDetector.cs index 89e0fc108..16d933afd 100644 --- a/Terminal.Gui/Drawing/SixelSupportDetector.cs +++ b/Terminal.Gui/Drawing/SixelSupportDetector.cs @@ -16,7 +16,7 @@ public class SixelSupportDetector { var darResponse = AnsiEscapeSequenceRequest.ExecuteAnsiRequest (EscSeqUtils.CSI_SendDeviceAttributes); var result = new SixelSupport (); - result.IsSupported = darResponse.Response.Contains ('4'); + result.IsSupported = darResponse.Response.Split (';').Contains ("4"); return result; }