-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
If bell() gets called emit bell event and add default bell sound #878
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
245f626
If bell() gets called emit bell event and add default bell sound
npezza93 0eab4d6
Rename Bell.ts to Sounds that has BellSound constant
npezza93 fd51d0a
Preload bell audio
npezza93 6b46e08
Move preloading bell audio to open() and append it the the terminal e…
npezza93 8a1f365
Add ability to have a visual bell
npezza93 44ed0b9
Dont hardcode as many color codes in xterm.ts
npezza93 8c94ef8
Clear out any existing vidualBellTimers. Set colors back to all white.
npezza93 3027b1d
Set the visual bell color to a light gray
npezza93 96c9d50
Fix some quote lints
npezza93 d8717d6
Add visual bell styling for underline and bar cursor types
npezza93 2f1380a
Make bellStyle singular. Preload sound on option setting. Use strings…
npezza93 c41bd81
Swap out bell sound for a free one
npezza93 3beb1f5
Add return types on new private functions
npezza93 1d6f71d
Fix bad merge
npezza93 0bb5ff8
Fix lints
npezza93 c88f501
Add a bellStyle dropdown in the demo
npezza93 8a6bff4
Remove bellAudioElement if it is not used. Remove extra import
npezza93 68cd79d
Set bellStyle to a string type instead of an array of strings
npezza93 b0164e1
Update bell sound
npezza93 668b25e
Fix license info and lint
Tyriar 147fef7
Use removeChild instead of remove for compatibility
npezza93 1211435
Change opacity on visual bell instead of background-color
npezza93 42c3eff
Update css transitions
npezza93 1f930c1
Add bellAudioElement to helperContainer instead of element
npezza93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* @license MIT | ||
*/ | ||
|
||
// Source: https://freesound.org/people/altemark/sounds/45759/ | ||
// This sound is released under the Creative Commons Attribution 3.0 Unported | ||
// (CC BY 3.0) license. It was created by 'altemark'. No modifications have been | ||
// made, apart from the conversion to base64. | ||
export const BellSound = 'data:audio/wav;base64,UklGRigBAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQBAADpAFgCwAMlBZoG/wdmCcoKRAypDQ8PbRDBEQQTOxRtFYcWlBePGIUZXhoiG88bcBz7HHIdzh0WHlMeZx51HmkeUx4WHs8dah0AHXwc3hs9G4saxRnyGBIYGBcQFv8U4RPAEoYRQBACD70NWwwHC6gJOwjWBloF7gOBAhABkf8b/qv8R/ve+Xf4Ife79W/0JfPZ8Z/wde9N7ijtE+wU6xvqM+lb6H7nw+YX5mrlxuQz5Mzje+Ma49fioeKD4nXiYeJy4pHitOL04j/jn+MN5IPkFOWs5U3mDefM55/ogOl36m7rdOyE7abuyu8D8Unyj/Pg9D/2qfcb+Yn6/vuK/Qj/lAAlAg=='; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be cool if this gets lazy loaded using dynamic imports microsoft/TypeScript#12364. I'm not sure how well this works on the web yet, I guess we can defer this unless you want to have a look? #894
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a stab at this but was getting some errors so I think I'll punt this to a different PR if that's alright.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it might not be so easy 👍