This commit is contained in:
Daniel Imms
2017-08-06 21:03:59 +03:00
committed by Paris Kasidiaris
parent 6cdd5a6405
commit 24932b16d7
2 changed files with 16 additions and 0 deletions
+5
View File
@@ -76,6 +76,11 @@ export class BufferSet extends EventEmitter implements IBufferSet {
this.emit('activate', this._alt);
}
/**
* Resizes both normal and alt buffers, adjusting their data accordingly.
* @param newCols The new number of columns.
* @param newRows The new number of rows.
*/
public resize(newCols: number, newRows: number): void {
this._normal.resize(newCols, newRows);
this._alt.resize(newCols, newRows);