From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16596 invoked from network); 1 Sep 2004 21:32:37 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 1 Sep 2004 21:32:37 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C2cia-0008Ko-OS for arch-gentoo-dev@lists.gentoo.org; Wed, 01 Sep 2004 21:32:36 +0000 Received: (qmail 16933 invoked by uid 89); 1 Sep 2004 21:32:35 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 29947 invoked from network); 1 Sep 2004 21:32:35 +0000 Date: Wed, 1 Sep 2004 22:29:28 +0100 From: Ciaran McCreesh To: seemant@gentoo.org Cc: gentoo-dev@lists.gentoo.org Message-ID: <20040901222928.4e440562@snowdrop.home> In-Reply-To: <1094071770.20187.11.camel@sephora> References: <20040901212144.1d18b048@snowdrop.home> <1094071770.20187.11.camel@sephora> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Wed__1_Sep_2004_22_29_28_+0100_ViYhyUXIdCTedGLx" Subject: Re: [gentoo-dev] rfc: epause instead of sleep in ebuilds X-Archives-Salt: d3947d44-6e21-4c20-b9f9-d276fb7b7816 X-Archives-Hash: 6d177eae86db28927129fa972e06d0c6 --Signature=_Wed__1_Sep_2004_22_29_28_+0100_ViYhyUXIdCTedGLx Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Wed, 01 Sep 2004 13:49:30 -0700 Seemant Kulleen wrote: | That's a great idea. Along these lines, perhaps something | standardised for the beeping einfo's would be nice too. I know at | least three packages which make use of the beeping einfo messages | (portage, gaim and xorg-x11) -- it'd be nice to make it a function | rather than the stuff that's happening now. Ok, how's this look? # Beep the specified number of times (defaults to five). If our output # is not a terminal, or if seq (part of coreutils) is unavailable, don't # beep. ebeep() { local n if [ -t 1 ] && [ -x /bin/seq ] ; then for n in $(seq 1 ${1:-5}) ; do echo -ne "\a" sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null echo -ne "\a" sleep 1 done fi } I think this might not work on OSX, not sure that they have a seq available (although they should...). -- Ciaran McCreesh : Gentoo Developer (Sparc, MIPS, Vim, Fluxbox) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm --Signature=_Wed__1_Sep_2004_22_29_28_+0100_ViYhyUXIdCTedGLx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBNj8/96zL6DUtXhERAgXKAKCKMdFsfGK3z4pKHuK8ZIRshR1aHwCcCJAN 0ltl4PDRW2Oi8Ed1nFvS6oI= =16Q+ -----END PGP SIGNATURE----- --Signature=_Wed__1_Sep_2004_22_29_28_+0100_ViYhyUXIdCTedGLx--