From owner-freebsd-questions Tue Nov 3 07:22:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA20819 for freebsd-questions-outgoing; Tue, 3 Nov 1998 07:22:13 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from PigStuy.dyn.ml.org (nyc-ny85-50.ix.netcom.com [205.184.129.50]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA20814 for ; Tue, 3 Nov 1998 07:22:10 -0800 (PST) (envelope-from spork@ix.netcom.com) Received: from localhost (spork@localhost) by PigStuy.dyn.ml.org (8.8.8/8.8.7) with SMTP id KAA02408; Tue, 3 Nov 1998 10:21:33 -0500 (EST) (envelope-from spork@ix.netcom.com) X-Authentication-Warning: PigStuy.dyn.ml.org: spork owned process doing -bs Date: Tue, 3 Nov 1998 10:21:24 -0500 (EST) From: Spike Gronim X-Sender: spork@PigStuy.dyn.ml.org Reply-To: sporkl@ix.netcom.com To: Dave Bodenstab cc: Patrick Seal , FreeBSD Questions Subject: Re: beep fuction? In-Reply-To: <363E198C.B23D32D8@mcs.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 2 Nov 1998, Dave Bodenstab wrote: > Patrick Seal wrote: > > > > Is their a fuction or program or something that will make my PC > > Speaker beep? I tried ncurses beep and flash but they didn't seem to > > work. > > Did you do an ``initscr()''? > > In any event, unless you're using [n]curses for screen management, > you probably don't want to use [n]curses -- Terminfo is sufficient: > > tgetent(buffer,getenv("TERM")) > BL = tgetstr("bl",...) > tputs(BL,...) > > however, for the simplest case, the following usually works: > > fputc('\007',stderr) > > If you're coding an X11 application, then you need to use: > > XBell(...) > > And finally, if you've configured your kernel with: > > pseudo-device speaker #Play IBM BASIC-style noises out your speaker > > you can do: > > echo -n C >/dev/speaker > > Dave Bodenstab > imdave@mcs.net > > (I'm experimenting with Netscape mail... I apologize if this > message is mis-formatted) > Hey. I've always used the following to make beeps: printf("\a"); -Spike Gronim sporkl@ix.netcom.com The majority only rules those who let them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message