use reset

This commit is contained in:
meganrogge
2021-01-05 07:10:27 -08:00
parent fe2b1c0d43
commit b34289cc44
+2
View File
@@ -13,6 +13,7 @@ import * as Strings from '../LocalizableStrings';
import { IEvent, EventEmitter } from 'common/EventEmitter';
import { AddonManager } from './AddonManager';
import { IParams } from 'common/parser/Types';
import { BufferSet } from 'common/buffer/BufferSet';
export class Terminal implements ITerminalApi {
private _core: ITerminal;
@@ -59,6 +60,7 @@ export class Terminal implements ITerminalApi {
public get cols(): number { return this._core.cols; }
public get buffer(): IBufferNamespaceApi {
this._checkProposedApi();
this._core.reset();
if (!this._buffer) {
this._buffer = new BufferNamespaceApi(this._core.buffers);
}