Start isolating buffer attributes into Buffer class

This commit is contained in:
Paris Kasidiaris
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent 8ede1fc9d2
commit bbafdd3d06
8 changed files with 222 additions and 242 deletions
+2
View File
@@ -38,11 +38,13 @@ export class BufferSet extends EventEmitter {
public activateNormalBuffer(): void {
this._activeBuffer = this._normal;
this.resetTerminal();
this.emit('activate', this._normal);
}
public activateAltBuffer(): void {
this._activeBuffer = this._alt;
this.resetTerminal();
this.emit('activate', this._alt);
}
}