瀏覽代碼

Switch to existing consts

tznind 10 月之前
父節點
當前提交
08aa9925b5
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. 0 4
      Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs
  2. 2 2
      Terminal.Gui/ConsoleDrivers/NetDriver.cs

+ 0 - 4
Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs

@@ -47,10 +47,6 @@ public static class EscSeqUtils
     /// </summary>
     /// </summary>
     public const string CSI = "\u001B[";
     public const string CSI = "\u001B[";
 
 
-
-    public const string CSI_Device_Attributes_Request = CSI + "c";
-    public const string CSI_Device_Attributes_Request_Terminator = "c";
-
     /// <summary>
     /// <summary>
     ///     ESC [ ? 1047 h - Activate xterm alternative buffer (no backscroll)
     ///     ESC [ ? 1047 h - Activate xterm alternative buffer (no backscroll)
     /// </summary>
     /// </summary>

+ 2 - 2
Terminal.Gui/ConsoleDrivers/NetDriver.cs

@@ -633,7 +633,7 @@ internal class NetEvents : IDisposable
                 }
                 }
 
 
                 break;
                 break;
-            case EscSeqUtils.CSI_Device_Attributes_Request_Terminator:
+            case EscSeqUtils.CSI_ReportDeviceAttributes_Terminator:
                 ConsoleDriver.SupportsSixel = values.Any (v => v == "4");
                 ConsoleDriver.SupportsSixel = values.Any (v => v == "4");
                 break;
                 break;
             default:
             default:
@@ -1140,7 +1140,7 @@ internal class NetDriver : ConsoleDriver
 
 
         _mainLoopDriver._netEvents.EscSeqRequests.Add ("c");
         _mainLoopDriver._netEvents.EscSeqRequests.Add ("c");
         // Determine if sixel is supported
         // Determine if sixel is supported
-        Console.Out.Write (EscSeqUtils.CSI_Device_Attributes_Request);
+        Console.Out.Write (EscSeqUtils.CSI_SendDeviceAttributes);
 
 
         return new MainLoop (_mainLoopDriver);
         return new MainLoop (_mainLoopDriver);
     }
     }