Fix CUD behavior
Don't wrap cursor to column 0 after a CUD, fixes 1 test
This commit is contained in:
@@ -220,6 +220,9 @@ export class InputHandler implements IInputHandler {
|
|||||||
if (this._terminal.y >= this._terminal.rows) {
|
if (this._terminal.y >= this._terminal.rows) {
|
||||||
this._terminal.y = this._terminal.rows - 1;
|
this._terminal.y = this._terminal.rows - 1;
|
||||||
}
|
}
|
||||||
|
if (this._terminal.x >= this._terminal.cols) {
|
||||||
|
this._terminal.x--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user