Jelajahi Sumber

add doc for applicationCursorKeys

xuty 4 tahun lalu
induk
melakukan
30cbe1b738
1 mengubah file dengan 10 tambahan dan 1 penghapusan
  1. 10 1
      lib/terminal/terminal.dart

+ 10 - 1
lib/terminal/terminal.dart

@@ -133,8 +133,17 @@ class Terminal with Observable {
   bool _showCursor = true;
   bool get showCursor => _showCursor;
 
-  bool _applicationCursorKeys = false;
+  /// DECCKM – Cursor Keys Mode (DEC Private)
+  ///
+  /// This is a private parameter applicable to set mode (SM) and reset mode
+  /// (RM) control sequences. This mode is only effective when the terminal is
+  /// in keypad application mode (see DECKPAM) and the ANSI/VT52 mode (DECANM)
+  /// is set (see DECANM). Under these conditions, if the cursor key mode is
+  /// reset, the four cursor function keys will send ANSI cursor control
+  /// commands. If cursor key mode is set, the four cursor function keys will
+  /// send application functions.
   bool get applicationCursorKeys => _applicationCursorKeys;
+  bool _applicationCursorKeys = false;
 
   bool _blinkingCursor = true;
   bool get blinkingCursor => _blinkingCursor;