Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Dec 2009 19:33:41 +0000
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        Polytropon <freebsd@edvax.de>
Cc:        Thomas Dickey <dickey@radix.net>, Anton Shterenlikht <mexas@bristol.ac.uk>, freebsd-questions@freebsd.org
Subject:   Re: example c program that does "beep"
Message-ID:  <20091226193341.GA90429@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <20091226200852.6f95766f.freebsd@edvax.de>
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> <20091226200852.6f95766f.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 26, 2009 at 08:08:52PM +0100, Polytropon wrote:
> 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.

it's on a text terminal, without X

looks like it's sparc issue, I do get beeps with this
code on ia386.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091226193341.GA90429>