If you are using a Unix terminal, you can print "\ a" to get the terminal:
>>> def beep(): ... print "\a" >>> beep()
Of course, this will print a new line too ... So sys.stdout.write("\a") could be better. But you have an idea.
David Wolever Dec 17 '10 at 3:01 2010-12-17 03:01
source share