Beeping the console
drlinux at columbus.rr.com
Tue Aug 31 23:49:46 CEST 2004
On Tuesday 31 August 2004 17:31, Jeffrey Barish wrote:
> What is the easiest way to beep the console from a Python program
> to do the same thing as echo -e \a)?
> Jeffrey Barish
or if you're on a Unix system and the program is not being run from
the console, you can do something like:
con = open("/dev/tty1", "w")
/dev/tty1 will probably depend on what time of system you're on.
More information about the Python-list