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

Viewed 13938

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.

5 Answers

Try printing the audible bell character:

print "\a"
Related