From owner-freebsd-questions@FreeBSD.ORG Fri Dec 25 19:02:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79152106566C for ; Fri, 25 Dec 2009 19:02:27 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 29B208FC16 for ; Fri, 25 Dec 2009 19:02:27 +0000 (UTC) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id nBPJ2X8w074880; Fri, 25 Dec 2009 14:02:33 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Anton Shterenlikht In-Reply-To: <20091225185826.GA82073@mech-cluster241.men.bris.ac.uk> References: <20091225185826.GA82073@mech-cluster241.men.bris.ac.uk> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-1nVRgDM1Sf/igyMM4h0q" Organization: MarcusCom, Inc. Date: Fri, 25 Dec 2009 14:02:19 -0500 Message-ID: <1261767739.1555.13.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: freebsd-questions@freebsd.org Subject: Re: example c program that does "beep" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2009 19:02:27 -0000 --=-1nVRgDM1Sf/igyMM4h0q Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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 int main(int argc, char **argv) { printf("%c", 7); return(0); } Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-1nVRgDM1Sf/igyMM4h0q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEABECAAYFAks1DDoACgkQb2iPiv4Uz4dWvwCeJmcBvPaCGgbI+LlqcHlPRa0K Of8An3HrkBeIE90I8V2voTwoiq5JAMoz =BnnI -----END PGP SIGNATURE----- --=-1nVRgDM1Sf/igyMM4h0q--