From owner-freebsd-questions@FreeBSD.ORG Sat Dec 26 19:08:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 750251065670 for ; Sat, 26 Dec 2009 19:08:56 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 309DD8FC16 for ; Sat, 26 Dec 2009 19:08:55 +0000 (UTC) Received: from r55.edvax.de (port-92-195-26-31.dynamic.qsc.de [92.195.26.31]) by mx02.qsc.de (Postfix) with ESMTP id 869621E267; Sat, 26 Dec 2009 20:08:54 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nBQJ8qfb001416; Sat, 26 Dec 2009 20:08:53 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 26 Dec 2009 20:08:52 +0100 From: Polytropon To: Anton Shterenlikht Message-Id: <20091226200852.6f95766f.freebsd@edvax.de> In-Reply-To: <20091226171623.GA34116@mech-cluster241.men.bris.ac.uk> References: <20091225185826.GA82073@mech-cluster241.men.bris.ac.uk> <20091225204914.2a532df3.freebsd@edvax.de> <20091226153327.GA9918@mech-anton242.men.bris.ac.uk> <20091226165005.GA17386@saltmine.radix.net> <20091226171623.GA34116@mech-cluster241.men.bris.ac.uk> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Polytropon , Thomas Dickey , freebsd-questions@freebsd.org Subject: Re: example c program that does "beep" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 19:08:56 -0000 On Sat, 26 Dec 2009 17:16:23 +0000, Anton Shterenlikht wrote: > On Sat, Dec 26, 2009 at 11:50:06AM -0500, Thomas Dickey wrote: > > > > instead of the printf/fflush, it would clear the screen and beep - if the > > terminal description says it can do the beep. The exanple I posted displays the return code of the functions, which is of (int) type. Of course, the common way to use them is to just call beep(); and it should beep if the terminal can do it. > I have > > > echo $TERM > xterm > > > > xterm can do beep, can't it? It can. I've just checked from within the xterm terminal emulator. Are you possibly using Konsole or the Gnome terminal program, or rxvt? In fact, it shouldn't matter. > But I can't get it to beep on anything. > I probably don't get some basic idea.. You're sure that yu haven't turned beeping completely off with some xset call? As far as I remember, for simple beeping, the speaker device (device SPEAKER or speaker_load="YES") isn't required. Maybe some wild mixer-settings? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...