I’m running a long running custom nodejs script and would like to be notified when the script is completed.
How do I make nodejs trigger the “System Bell”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Output the BELL character (Unicode 0007) to the standard output.
Update 2023
Solution above doesn’t work anymore, but writing directly to stdout still works (tested on Node.js v14.20):
References
ASCII/ISO 8859 (Latin-1) Table
Unicode Characters: 00000 to 000FF
The Open Group Base Specifications Issue 7: Portable Character Set
Programming with Unicode Documentation (unicodebook.pdf)
How a bullet turns into a beep – The Old New Thing
Unicode 10.0.0 Final Names List