Skip to content

Commit

Permalink
Hook up bell status
Browse files Browse the repository at this point in the history
Part of #120241
  • Loading branch information
Tyriar committed Apr 6, 2021
1 parent 33d5a74 commit 1603dc7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {

this._initDimensions();
this._createProcessManager();
this.statusList.onDidAddStatus(e => console.log('add', e));
this.statusList.onDidRemoveStatus(e => console.log('remove', e));

this._containerReadyBarrier = new AutoOpenBarrier(Constants.WaitForContainerThreshold);
this._xtermReadyPromise = this._createXterm();
Expand Down Expand Up @@ -468,6 +466,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
if (this._shellLaunchConfig.initialText) {
this._xterm.writeln(this._shellLaunchConfig.initialText);
}
this._xterm.onBell(() => this.statusList.add({ id: TerminalStatus.Bell, severity: Severity.Warning }, 3000));
this._xterm.onLineFeed(() => this._onLineFeed());
this._xterm.onKey(e => this._onKey(e.key, e.domEvent));
this._xterm.onSelectionChange(async () => this._onSelectionChange());
Expand Down

0 comments on commit 1603dc7

Please sign in to comment.