mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix some references
This commit is contained in:
committed by
Paris Kasidiaris
parent
bbafdd3d06
commit
73b4bfb5f8
+2
-6
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user