Browse Source

Fix algorithm to look for exactly 4 not things like 42 etc.

tznind 10 months ago
parent
commit
78d49fcd84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Drawing/SixelSupportDetector.cs

+ 1 - 1
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;
     }