Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2009 20:34:39 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: example c program that does "beep"
Message-ID:  <20091225203439.95a8464f.freebsd@edvax.de>
In-Reply-To: <20091225185826.GA82073@mech-cluster241.men.bris.ac.uk>
References:  <20091225185826.GA82073@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart=_Fri__25_Dec_2009_20_34_39_+0100_OhJbXW6id0Ha.Amt
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Fri, 25 Dec 2009 18:58:26 +0000, Anton Shterenlikht <mexas@bristol.ac.uk> wrote:
> How can I get a beep from c?
> I looked at curses and syscons.c, but
> still not clear.

If you want to use NCURSES / CURSES, it's a bit complicated.

Otherwise, just output %c (the character) 0x07, BEL, which
generates an audible bell, or beep.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

--Multipart=_Fri__25_Dec_2009_20_34_39_+0100_OhJbXW6id0Ha.Amt--



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