respect DECSTBM margins in DECOM mode
This commit is contained in:
+14
-2
@@ -615,11 +615,23 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
} else if (this._terminal.buffer.y >= this._terminal.rows) {
|
} else if (this._terminal.buffer.y >= this._terminal.rows) {
|
||||||
this._terminal.buffer.y = this._terminal.rows - 1;
|
this._terminal.buffer.y = this._terminal.rows - 1;
|
||||||
}
|
}
|
||||||
|
if (this._terminal.originMode) {
|
||||||
|
if (this._terminal.buffer.y < this._terminal.buffer.scrollTop) {
|
||||||
|
this._terminal.buffer.y = this._terminal.buffer.scrollTop;
|
||||||
|
} else if (this._terminal.buffer.y > this._terminal.buffer.scrollBottom) {
|
||||||
|
this._terminal.buffer.y = this._terminal.buffer.scrollBottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _setCursor(x: number, y: number): void {
|
private _setCursor(x: number, y: number): void {
|
||||||
this._terminal.buffer.x = x;
|
if (this._terminal.originMode) {
|
||||||
this._terminal.buffer.y = y;
|
this._terminal.buffer.x = x;
|
||||||
|
this._terminal.buffer.y = this._terminal.buffer.scrollTop + y;
|
||||||
|
} else {
|
||||||
|
this._terminal.buffer.x = x;
|
||||||
|
this._terminal.buffer.y = y;
|
||||||
|
}
|
||||||
this._restrictCursor();
|
this._restrictCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,9 +136,10 @@ if (os.platform() !== 'win32') {
|
|||||||
// 't0100-IRM.in',
|
// 't0100-IRM.in',
|
||||||
't0101-NLM.in',
|
't0101-NLM.in',
|
||||||
't0103-reverse_wrap.in',
|
't0103-reverse_wrap.in',
|
||||||
't0504-vim.in',
|
't0504-vim.in'
|
||||||
|
|
||||||
// vttest related files
|
// vttest related files
|
||||||
't0300-vttest1.in'
|
// 't0300-vttest1.in'
|
||||||
];
|
];
|
||||||
if (os.platform() === 'darwin') {
|
if (os.platform() === 'darwin') {
|
||||||
// These are failing on macOS only
|
// These are failing on macOS only
|
||||||
|
|||||||
Reference in New Issue
Block a user