Date: Sat, 26 Dec 2009 20:08:52 +0100 From: Polytropon <freebsd@edvax.de> To: Anton Shterenlikht <mexas@bristol.ac.uk> Cc: Polytropon <freebsd@edvax.de>, Thomas Dickey <dickey@radix.net>, freebsd-questions@freebsd.org Subject: Re: example c program that does "beep" 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 26 Dec 2009 17:16:23 +0000, Anton Shterenlikht <mexas@bristol.ac.uk> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091226200852.6f95766f.freebsd>