_isAltBuffer -> _hasScrollback

This commit is contained in:
Daniel Imms
2017-08-16 08:45:30 -07:00
parent 9dd1083918
commit 7b0d0e810c
3 changed files with 14 additions and 12 deletions
+5 -2
View File
@@ -21,9 +21,12 @@ export class BufferSet extends EventEmitter implements IBufferSet {
*/
constructor(private _terminal: ITerminal) {
super();
this._normal = new Buffer(this._terminal, false);
this._normal = new Buffer(this._terminal, true);
this._normal.fillViewportRows();
this._alt = new Buffer(this._terminal, true);
// The alt buffer should never have scrollback.
// See http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-The-Alternate-Screen-Buffer
this._alt = new Buffer(this._terminal, false);
this._activeBuffer = this._normal;
}