Fix some references

This commit is contained in:
Paris Kasidiaris
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent bbafdd3d06
commit 73b4bfb5f8
3 changed files with 5 additions and 9 deletions
+2 -6
View File
@@ -9,7 +9,7 @@ import { CircularList } from './utils/CircularList';
* This class represents a terminal buffer (an internal state of the terminal)/
*/
export class Buffer {
private _lines: CircularList<any>;
public lines: CircularList<any>;
private _tabs: any;
/**
@@ -27,10 +27,6 @@ export class Buffer {
public y: number = 0,
public x: number = 0,
) {
this._lines = new CircularList(this.terminal.scrollback);
}
public get lines(): CircularList<any> {
return this._lines;
this.lines = new CircularList(this.terminal.scrollback);
}
}
+1 -1
View File
@@ -52,7 +52,7 @@ escapedStateHandler['c'] = (parser, terminal) => {
};
escapedStateHandler['E'] = (parser, terminal) => {
// ESC E Next Line ( NEL is 0x85).
terminal.x = 0;
terminal.buffer.x = 0;
terminal.index();
parser.setState(ParserState.NORMAL);
};
+2 -2
View File
@@ -144,10 +144,10 @@ export class Renderer {
let line = this._terminal.buffer.lines.get(row);
let x;
if (this._terminal.y === y - (this._terminal.buffer.ybase - this._terminal.buffer.ydisp) &&
if (this._terminal.buffer.y === y - (this._terminal.buffer.ybase - this._terminal.buffer.ydisp) &&
this._terminal.cursorState &&
!this._terminal.cursorHidden) {
x = this._terminal.x;
x = this._terminal.buffer.x;
} else {
x = -1;
}