Skip to content

Commit d54587a

Browse files
committed
Fix bad merge
1 parent fe26a0a commit d54587a

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xterm",
33
"description": "Full xterm terminal, in your browser",
4-
"version": "2.9.2",
4+
"version": "2.9.1",
55
"ignore": [
66
"demo",
77
"test",

src/InputHandler.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,7 @@ export class InputHandler implements IInputHandler {
107107
* Bell (Ctrl-G).
108108
*/
109109
public bell(): void {
110-
this._terminal.emit('bell');
111-
if (this._terminal.bellSound) {
112-
this._terminal.bellAudioElement.play();
113-
}
114-
if (!this._terminal.visualBell) {
115-
return;
116-
}
117-
this._terminal.element.style.borderColor = 'white';
118-
setTimeout(() => this._terminal.element.style.borderColor = '', 10);
119-
if (this._terminal.options.popOnBell) {
120-
this._terminal.focus();
121-
}
110+
this._terminal.bell();
122111
}
123112

124113
/**

src/Interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export interface IInputHandlingTerminal extends IEventEmitter {
8787
viewport: IViewport;
8888
selectionManager: ISelectionManager;
8989

90+
bell(): void;
9091
focus(): void;
9192
convertEol: boolean;
9293
updateRange(y: number): void;

src/utils/TestUtils.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export class MockInputHandlingTerminal implements IInputHandlingTerminal {
9797
throw new Error('Method not implemented.');
9898
}
9999
convertEol: boolean;
100+
bell(): void {
101+
throw new Error('Method not implemented.');
102+
}
103+
100104
updateRange(y: number): void {
101105
throw new Error('Method not implemented.');
102106
}

0 commit comments

Comments
 (0)