fix DECSC

This commit is contained in:
Jörg Breitbart
2019-07-07 19:54:47 +02:00
parent fe59e632a9
commit 204847b134
3 changed files with 42 additions and 3 deletions
@@ -0,0 +1,35 @@
Test of autowrap, mixing control and print characters.
The left/right margins should have letters in order:
[?6hAa
aBB b
C cC

DdEe
eFF f
G gG

HhIi
iJJ j
K kK

LlMm
mNN n
O oO

PpQq
qRR r
S sS

TtUu
uVV v
W wW

XxYy
yZZ z
[?6lPush <RETURN>
+3
View File
@@ -1249,6 +1249,7 @@ export class InputHandler extends Disposable implements IInputHandler {
case 3: // 132 col mode
this._terminal.savedCols = this._terminal.cols;
this._terminal.resize(132, this._terminal.rows);
this._terminal.reset();
break;
case 6:
this._terminal.originMode = true;
@@ -1447,6 +1448,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._terminal.resize(this._terminal.savedCols, this._terminal.rows);
}
delete this._terminal.savedCols;
this._terminal.reset();
break;
case 6:
this._terminal.originMode = false;
@@ -1919,6 +1921,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._terminal.buffer.y = Math.max(this._terminal.buffer.savedY - this._terminal.buffer.ybase, 0);
this._terminal.curAttrData.fg = this._terminal.buffer.savedCurAttrData.fg;
this._terminal.curAttrData.bg = this._terminal.buffer.savedCurAttrData.bg;
this._restrictCursor();
}
+4 -3
View File
@@ -117,8 +117,8 @@ if (os.platform() !== 'win32') {
// 't0052-DL.in',
// 't0055-EL.in',
't0056-ED.in',
't0060-DECSC.in',
't0061-CSI_s.in',
// 't0060-DECSC.in',
// 't0061-CSI_s.in',
't0070-DECSTBM_LF.in',
't0071-DECSTBM_IND.in',
't0072-DECSTBM_NEL.in',
@@ -136,7 +136,8 @@ if (os.platform() !== 'win32') {
// 't0100-IRM.in',
't0101-NLM.in',
't0103-reverse_wrap.in',
't0504-vim.in'
't0504-vim.in',
't0600-vttest1.in' // FIXME: fix height and create .text
];
if (os.platform() === 'darwin') {
// These are failing on macOS only