|
@@ -46,8 +46,6 @@ class Terminal with Observable {
|
|
|
_buffer = _mainBuffer;
|
|
_buffer = _mainBuffer;
|
|
|
|
|
|
|
|
tabs.reset();
|
|
tabs.reset();
|
|
|
-
|
|
|
|
|
- // _buffer.write('this is magic!');
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool _dirty = false;
|
|
bool _dirty = false;
|
|
@@ -86,10 +84,8 @@ class Terminal with Observable {
|
|
|
/// You can set or reset insert/replace mode as follows.
|
|
/// You can set or reset insert/replace mode as follows.
|
|
|
bool _replaceMode = true;
|
|
bool _replaceMode = true;
|
|
|
|
|
|
|
|
- bool _lineFeed = true;
|
|
|
|
|
bool _screenMode = false; // DECSCNM (black on white background)
|
|
bool _screenMode = false; // DECSCNM (black on white background)
|
|
|
bool _autoWrapMode = true;
|
|
bool _autoWrapMode = true;
|
|
|
- bool _bracketedPasteMode = false;
|
|
|
|
|
|
|
|
|
|
/// DECOM – Origin Mode (DEC Private)
|
|
/// DECOM – Origin Mode (DEC Private)
|
|
|
///
|
|
///
|
|
@@ -113,16 +109,34 @@ class Terminal with Observable {
|
|
|
bool get originMode => _originMode;
|
|
bool get originMode => _originMode;
|
|
|
bool _originMode = false;
|
|
bool _originMode = false;
|
|
|
|
|
|
|
|
- bool get lineFeed => _lineFeed;
|
|
|
|
|
- bool get newLineMode => !_lineFeed;
|
|
|
|
|
|
|
+ /// LNM – Line Feed/New Line Mode
|
|
|
|
|
+ ///
|
|
|
|
|
+ /// This is a parameter applicable to set mode (SM) and reset mode (RM)
|
|
|
|
|
+ /// control sequences. The reset state causes the interpretation of the line
|
|
|
|
|
+ /// feed (LF), defined in ANSI Standard X3.4-1977, to imply only vertical
|
|
|
|
|
+ /// movement of the active position and causes the RETURN key (CR) to send the
|
|
|
|
|
+ /// single code CR. The set state causes the LF to imply movement to the first
|
|
|
|
|
+ /// position of the following line and causes the RETURN key to send the two
|
|
|
|
|
+ /// codes (CR, LF). This is the New Line (NL) option.
|
|
|
|
|
+ ///
|
|
|
|
|
+ /// This mode does not affect the index (IND), or next line (NEL) format
|
|
|
|
|
+ /// effectors.
|
|
|
|
|
+ bool get lineFeedMode => _lineFeedMode;
|
|
|
|
|
+ bool _lineFeedMode = true;
|
|
|
|
|
+
|
|
|
|
|
+ /// See: [lineFeedMode]
|
|
|
|
|
+ bool get newLineMode => !_lineFeedMode;
|
|
|
|
|
+
|
|
|
|
|
+ bool _bracketedPasteMode = false;
|
|
|
bool get bracketedPasteMode => _bracketedPasteMode;
|
|
bool get bracketedPasteMode => _bracketedPasteMode;
|
|
|
|
|
|
|
|
bool _showCursor = true;
|
|
bool _showCursor = true;
|
|
|
- bool _applicationCursorKeys = false;
|
|
|
|
|
- bool _blinkingCursor = true;
|
|
|
|
|
-
|
|
|
|
|
bool get showCursor => _showCursor;
|
|
bool get showCursor => _showCursor;
|
|
|
|
|
+
|
|
|
|
|
+ bool _applicationCursorKeys = false;
|
|
|
bool get applicationCursorKeys => _applicationCursorKeys;
|
|
bool get applicationCursorKeys => _applicationCursorKeys;
|
|
|
|
|
+
|
|
|
|
|
+ bool _blinkingCursor = true;
|
|
|
bool get blinkingCursor => _blinkingCursor;
|
|
bool get blinkingCursor => _blinkingCursor;
|
|
|
|
|
|
|
|
late Buffer _buffer;
|
|
late Buffer _buffer;
|
|
@@ -253,11 +267,11 @@ class Terminal with Observable {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void setNewLineMode() {
|
|
void setNewLineMode() {
|
|
|
- _lineFeed = false;
|
|
|
|
|
|
|
+ _lineFeedMode = false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void setLineFeedMode() {
|
|
void setLineFeedMode() {
|
|
|
- _lineFeed = true;
|
|
|
|
|
|
|
+ _lineFeedMode = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void setMouseMode(MouseMode mode) {
|
|
void setMouseMode(MouseMode mode) {
|