@@ -56,8 +56,13 @@ export class InputHandler implements IInputHandler {
|
|||||||
this._terminal.x = 0;
|
this._terminal.x = 0;
|
||||||
this._terminal.y++;
|
this._terminal.y++;
|
||||||
if (this._terminal.y > this._terminal.scrollBottom) {
|
if (this._terminal.y > this._terminal.scrollBottom) {
|
||||||
|
// Insert a new line, scroll and mark as a wrapped line
|
||||||
this._terminal.y--;
|
this._terminal.y--;
|
||||||
this._terminal.scroll(true);
|
this._terminal.scroll(true);
|
||||||
|
} else {
|
||||||
|
// The line already exists (eg. the initial viewport), mark it as a
|
||||||
|
// wrapped line
|
||||||
|
this._terminal.lines.get(this._terminal.y).isWrapped = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ch_width === 2) // FIXME: check for xterm behavior
|
if (ch_width === 2) // FIXME: check for xterm behavior
|
||||||
|
|||||||
Reference in New Issue
Block a user