example c program that does "beep"

Aryeh Friedman aryeh.friedman at gmail.com
Fri Dec 25 19:02:03 UTC 2009


printf("\007"); /* assumes that your using a console/terminal that
will beep on ctl-g */

On Fri, Dec 25, 2009 at 1:58 PM, Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
> How can I get a beep from c?
> I looked at curses and syscons.c, but
> still not clear.
> Could somebody send me an example.
> I'd be soooooo grateful.
>
> 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list