Remove terminal.bell usage
This commit is contained in:
+4
-2
@@ -135,6 +135,8 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
public get onRequestRefreshRows(): IEvent<number, number> { return this._onRequestRefreshRows.event; }
|
public get onRequestRefreshRows(): IEvent<number, number> { return this._onRequestRefreshRows.event; }
|
||||||
private _onRequestReset = new EventEmitter<void>();
|
private _onRequestReset = new EventEmitter<void>();
|
||||||
public get onRequestReset(): IEvent<void> { return this._onRequestReset.event; }
|
public get onRequestReset(): IEvent<void> { return this._onRequestReset.event; }
|
||||||
|
private _onRequestBell = new EventEmitter<void>();
|
||||||
|
public get onRequestBell(): IEvent<void> { return this._onRequestBell.event; }
|
||||||
private _onCursorMove = new EventEmitter<void>();
|
private _onCursorMove = new EventEmitter<void>();
|
||||||
public get onCursorMove(): IEvent<void> { return this._onCursorMove.event; }
|
public get onCursorMove(): IEvent<void> { return this._onCursorMove.event; }
|
||||||
private _onLineFeed = new EventEmitter<void>();
|
private _onLineFeed = new EventEmitter<void>();
|
||||||
@@ -143,7 +145,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
public get onScroll(): IEvent<number> { return this._onScroll.event; }
|
public get onScroll(): IEvent<number> { return this._onScroll.event; }
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected _terminal: IInputHandlingTerminal,
|
private _terminal: IInputHandlingTerminal,
|
||||||
private readonly _bufferService: IBufferService,
|
private readonly _bufferService: IBufferService,
|
||||||
private readonly _charsetService: ICharsetService,
|
private readonly _charsetService: ICharsetService,
|
||||||
private readonly _coreService: ICoreService,
|
private readonly _coreService: ICoreService,
|
||||||
@@ -543,7 +545,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
* Bell (Ctrl-G).
|
* Bell (Ctrl-G).
|
||||||
*/
|
*/
|
||||||
public bell(): void {
|
public bell(): void {
|
||||||
this._terminal.bell();
|
this._onRequestBell.fire();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
|||||||
|
|
||||||
// Register input handler and refire/handle events
|
// Register input handler and refire/handle events
|
||||||
this._inputHandler = new InputHandler(this, this._bufferService, this._charsetService, this._coreService, this._dirtyRowService, this._logService, this.optionsService, this._coreMouseService);
|
this._inputHandler = new InputHandler(this, this._bufferService, this._charsetService, this._coreService, this._dirtyRowService, this._logService, this.optionsService, this._coreMouseService);
|
||||||
|
this._inputHandler.onRequestBell(() => this.bell());
|
||||||
this._inputHandler.onRequestRefreshRows((start, end) => this.refresh(start, end));
|
this._inputHandler.onRequestRefreshRows((start, end) => this.refresh(start, end));
|
||||||
this._inputHandler.onRequestReset(() => this.reset());
|
this._inputHandler.onRequestReset(() => this.reset());
|
||||||
this._inputHandler.onCursorMove(() => this._onCursorMove.fire());
|
this._inputHandler.onCursorMove(() => this._onCursorMove.fire());
|
||||||
|
|||||||
Vendored
-1
@@ -38,7 +38,6 @@ export interface IInputHandlingTerminal {
|
|||||||
onA11yCharEmitter: IEventEmitter<string>;
|
onA11yCharEmitter: IEventEmitter<string>;
|
||||||
onA11yTabEmitter: IEventEmitter<number>;
|
onA11yTabEmitter: IEventEmitter<number>;
|
||||||
|
|
||||||
bell(): void;
|
|
||||||
focus(): void;
|
focus(): void;
|
||||||
scroll(eraseAttr: IAttributeData, isWrapped?: boolean): void;
|
scroll(eraseAttr: IAttributeData, isWrapped?: boolean): void;
|
||||||
is(term: string): boolean;
|
is(term: string): boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user