Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support event when the bell goes off #3014

Closed
Tyriar opened this issue Jul 16, 2020 · 2 comments · Fixed by #3290
Closed

Support event when the bell goes off #3014

Tyriar opened this issue Jul 16, 2020 · 2 comments · Fixed by #3290
Labels
good first issue help wanted type/enhancement Features or improvements to existing features
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Jul 16, 2020

Electron has an API to play the shell bell https://www.electronjs.org/docs/api/shell#shellbeep

To support this with xterm.js we would need to allow bellSound to take a () => void:

/**
* A data uri of the sound to use for the bell when `bellStyle = 'sound'`.
*/
bellSound?: string;

@bolariin
Copy link

bolariin commented Aug 2, 2020

I would like to work on this issue

@Tyriar
Copy link
Member Author

Tyriar commented Aug 3, 2020

@bolariin sounds good 👍

@Tyriar Tyriar added this to the 4.12.0 milestone Mar 31, 2021
@Tyriar Tyriar changed the title Support callback as bellSound Support event when the bell goes off Mar 31, 2021
bmf-ribeiro pushed a commit to bmf-ribeiro/xterm.js that referenced this issue Apr 3, 2021
 - Add onBell event listener to allow embeders to hook into it
Tyriar added a commit that referenced this issue Apr 6, 2021
…ener

Fix #3014  - Add onBell event listener to allow embeders to hook into it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue help wanted type/enhancement Features or improvements to existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants