rubybeep

What is the easiest way I can create a 'beep' sound from a Ruby program?


I'm making a small ruby command line script and I wanted to know what the simplest way to have the program emit a beep is.


Solution

  • Try printing the audible bell character:

    print "\a"