example c program that does "beep"
Anton Shterenlikht
mexas at bristol.ac.uk
Sat Dec 26 19:33:47 UTC 2009
On Sat, Dec 26, 2009 at 08:08:52PM +0100, Polytropon wrote:
> On Sat, 26 Dec 2009 17:16:23 +0000, Anton Shterenlikht <mexas at 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
More information about the freebsd-questions
mailing list