Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26018
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <malaclypse2@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'pop': 0.05; 'nicely': 0.07; 'received:mail-vc0-f174.google.com': 0.09; 'subject:howto': 0.09; '(just': 0.16; 'alerts,': 0.16; 'jerry': 0.16; 'personally,': 0.16; 'simplest': 0.16; 'ssh': 0.16; 'subject:simple': 0.16; 'wrote:': 0.17; "user's": 0.22; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'link,': 0.29; 'received:209.85.220.174': 0.29; 'remotely': 0.29; 'character': 0.29; "i'm": 0.29; 'usually': 0.30; 'fri,': 0.30; 'to:addr:python-list': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'screen': 0.34; 'whatever': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'visual': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'jul': 0.65; 'bel': 0.84; 'bells': 0.84; 'gelonida': 0.84; 'plays': 0.84; '9:00': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xgoBWyFnNLlHBTBWU2TKhZdwlrYe+Opj1DphwJuWlbE=; b=BjVIuEV+H2u3/f1+K1DJIBUyVTmlDcBeQX+FSk4yqhS27fkAt7IgDZea5NX2X80ifE 0ixeEYlfXZJbQpO2zlGDqgixRS8omxTxmzlmf6kiLeESl8EmFLanMv+fVph02l4njZTr +pW4FvLPaiEVtVU01d90/HT/nLnCLC/Vo1hFTRT349/jyMiW2LMPQsqdr1UhbHZj92vc c5i6p9J7IqzATLGuwa5H2FVMtVgoM1AMVjZynSqGScaREbd7OJPuMMeVGT07yi7CspPo xYJGt6EE0uX+fjcj3dpY1v13TlMlRWgQZL/BIxOFVnJoq6Jk2m/kOMcG+dkw72xXKgiU QlpA== |
| MIME-Version | 1.0 |
| In-Reply-To | <jtqgam$77p$1@dough.gmane.org> |
| References | <jtqgam$77p$1@dough.gmane.org> |
| Date | Tue, 24 Jul 2012 18:03:19 -0400 |
| Subject | Re: howto do a robust simple cross platform beep |
| From | Jerry Hill <malaclypse2@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2558.1343167403.4697.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1343167403 news.xs4all.nl 6926 [2001:888:2000:d::a6]:60950 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26018 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: howto do a robust simple cross platform beep Jerry Hill <malaclypse2@gmail.com> - 2012-07-24 18:03 -0400
csiph-web