howto do a robust simple cross platform beep

Chris Angelico rosuav at gmail.com
Sat Jul 14 21:07:24 EDT 2012


On Sun, Jul 15, 2012 at 10:39 AM, Hans Mulder <hansmu at xs4all.nl> wrote:
> The other prerequisite is that the use is physically near the
> compueter where your Python process is running.
>
> If, for exmple, I'm ssh'ed into my webserver, then sending a sound
> file to the server's speaker may startle someone in the data centre,
> but it won't attract my attention.  If, OTOH, you do:
>
>     print "\7"
>
> , then an ASCII bell will be sent across the network, and my
> terminal emulator will beep.
>

Sure, though other of the OP's ideas preclude that too. But you could
use any network protocol that acknowledges sound (MUDs use \7
following the terminal).

ChrisA



More information about the Python-list mailing list