Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26018 > unrolled thread

Re: howto do a robust simple cross platform beep

Started byJerry Hill <malaclypse2@gmail.com>
First post2012-07-24 18:03 -0400
Last post2012-07-24 18:03 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: howto do a robust simple cross platform beep Jerry Hill <malaclypse2@gmail.com> - 2012-07-24 18:03 -0400

#26018 — Re: howto do a robust simple cross platform beep

FromJerry Hill <malaclypse2@gmail.com>
Date2012-07-24 18:03 -0400
SubjectRe: howto do a robust simple cross platform beep
Message-ID<mailman.2558.1343167403.4697.python-list@python.org>
On Fri, Jul 13, 2012 at 9:00 PM, Gelonida N <gelonida@gmail.com> wrote:
> I tried the simplest approach (just printing the BEL character '\a' chr(7)
> to the console.

That's what I do when I want to send an audible alert to the user of a
console based program.  It's then up to the user's terminal to do
whatever the user wants. Printing a BEL character has the added
advantage that it plays nicely with programs that are run remotely
(through ssh sessions and the like).

Personally, I'm usually in a screen session, inside either an xterm or
over an ssh link, and have visual bells turned on so I can see the
alerts, even when they pop up in another screen.

-- 
Jerry

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web