- Add onBell event listener to allow embeders to hook into it
This commit is contained in:
Bruno Ribeiro
2021-04-03 16:34:00 +01:00
parent 0421f6ebcf
commit 7b7b7a36db
8 changed files with 30 additions and 0 deletions
+6
View File
@@ -131,6 +131,12 @@ describe('Terminal', () => {
});
term.write('\x1b]2;title\x07');
});
it('should fire the onBell event', (done) => {
term.onBell(e => {
done();
});
term.write('\a');
});
});
describe('attachCustomKeyEventHandler', () => {