How I trigger the “System Bell” in nodejs

后端 未结 2 549
野性不改
野性不改 2020-12-15 16:23

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\"?

2条回答
  •  猫巷女王i
    2020-12-15 17:15

    Output the BELL character (Unicode 0007) to the standard output.

    console.log('\u0007');
    

    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

提交回复
热议问题