Jelajahi Sumber

✂️run code format

xuty 5 tahun lalu
induk
melakukan
2a3a1afba8
5 mengubah file dengan 32 tambahan dan 19 penghapusan
  1. 1 1
      lib/input/shortcut.dart
  2. 2 1
      lib/terminal/csi.dart
  3. 6 6
      lib/terminal/modes.dart
  4. 22 10
      lib/utli/hash_values.dart
  5. 1 1
      lib/xterm.dart

+ 1 - 1
lib/input/shortcut.dart

@@ -1 +1 @@
-// TBD
+// TBD

+ 2 - 1
lib/terminal/csi.dart

@@ -223,7 +223,8 @@ void csiDeviceStatusReportHandler(CSI csi, Terminal terminal) {
       terminal.onInput("\x1b[${terminal.cursorX + 1};${terminal.cursorY + 1}R");
       break;
     default:
-      terminal.debug.onError('Unknown Device Status Report identifier: ${csi.params[0]}');
+      terminal.debug
+          .onError('Unknown Device Status Report identifier: ${csi.params[0]}');
       return;
   }
 }

+ 6 - 6
lib/terminal/modes.dart

@@ -84,12 +84,12 @@ void csiSetMode(String mode, bool enabled, Terminal terminal) {
       terminal.setAutoWrapMode(enabled);
       break;
     case "?9":
-    	if (enabled) {
-    		// terminal.setMouseMode(MouseMode.x10);
-    	} else {
-    		terminal.setMouseMode(MouseMode.none);
-    	}
-     break;
+      if (enabled) {
+        // terminal.setMouseMode(MouseMode.x10);
+      } else {
+        terminal.setMouseMode(MouseMode.none);
+      }
+      break;
     case "?12":
     case "?13":
       terminal.setBlinkingCursor(enabled);

+ 22 - 10
lib/utli/hash_values.dart

@@ -1,5 +1,7 @@
+class _HashEnd {
+  const _HashEnd();
+}
 
-class _HashEnd { const _HashEnd(); }
 const _HashEnd _hashEnd = _HashEnd();
 
 class _Jenkins {
@@ -17,15 +19,25 @@ class _Jenkins {
   }
 }
 
-
-int hashValues(
-  Object arg01,            Object arg02,          [ Object arg03 = _hashEnd,
-  Object arg04 = _hashEnd, Object arg05 = _hashEnd, Object arg06 = _hashEnd,
-  Object arg07 = _hashEnd, Object arg08 = _hashEnd, Object arg09 = _hashEnd,
-  Object arg10 = _hashEnd, Object arg11 = _hashEnd, Object arg12 = _hashEnd,
-  Object arg13 = _hashEnd, Object arg14 = _hashEnd, Object arg15 = _hashEnd,
-  Object arg16 = _hashEnd, Object arg17 = _hashEnd, Object arg18 = _hashEnd,
-  Object arg19 = _hashEnd, Object arg20 = _hashEnd ]) {
+int hashValues(Object arg01, Object arg02,
+    [Object arg03 = _hashEnd,
+    Object arg04 = _hashEnd,
+    Object arg05 = _hashEnd,
+    Object arg06 = _hashEnd,
+    Object arg07 = _hashEnd,
+    Object arg08 = _hashEnd,
+    Object arg09 = _hashEnd,
+    Object arg10 = _hashEnd,
+    Object arg11 = _hashEnd,
+    Object arg12 = _hashEnd,
+    Object arg13 = _hashEnd,
+    Object arg14 = _hashEnd,
+    Object arg15 = _hashEnd,
+    Object arg16 = _hashEnd,
+    Object arg17 = _hashEnd,
+    Object arg18 = _hashEnd,
+    Object arg19 = _hashEnd,
+    Object arg20 = _hashEnd]) {
   int result = 0;
   result = _Jenkins.combine(result, arg01);
   result = _Jenkins.combine(result, arg02);

+ 1 - 1
lib/xterm.dart

@@ -1,4 +1,4 @@
 library xterm;
 
 export 'terminal/terminal.dart';
-export 'terminal/platform.dart';
+export 'terminal/platform.dart';