An interesting question about "print '\a'"

bonono at gmail.com bonono at gmail.com
Mon Oct 24 00:45:30 EDT 2005


I thought that is just a "terminal" thing(extend ASCII that interpreted
by the terminal)? If you have a terminal attached to a host, shouldn't
this be making sound on the terminal rather than the server ? This not
alsa or output to the server device, but straightly sending '\a' back
to the client machine I believe.

Anthony Liu wrote:
> We know that if we do
>
> print '\a'
>
> the bell will sound.
>
> Now, why do I hear the sound on my local machine when
> I run a python script on a remote host?
>
> I understand if I hear it when I do
>
> print '\a'
>
> on my local machine.
>
> Does the command get sent back to the client machine?
>
> Thanks.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




More information about the Python-list mailing list