Date: Fri, 25 Dec 2009 14:02:19 -0500 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Anton Shterenlikht <mexas@bristol.ac.uk> Cc: freebsd-questions@freebsd.org Subject: Re: example c program that does "beep" Message-ID: <1261767739.1555.13.camel@shumai.marcuscom.com> 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
[-- Attachment #1 --]
On Fri, 2009-12-25 at 18:58 +0000, Anton Shterenlikht 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.
#include <stdio.h>
int
main(int argc, char **argv) {
printf("%c", 7);
return(0);
}
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)
iEYEABECAAYFAks1DDoACgkQb2iPiv4Uz4dWvwCeJmcBvPaCGgbI+LlqcHlPRa0K
Of8An3HrkBeIE90I8V2voTwoiq5JAMoz
=BnnI
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1261767739.1555.13.camel>
