From owner-freebsd-questions Mon Nov 2 12:45:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02340 for freebsd-questions-outgoing; Mon, 2 Nov 1998 12:45:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from base486.home.org (imdave.pr.mcs.net [205.164.3.77]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02314 for ; Mon, 2 Nov 1998 12:45:15 -0800 (PST) (envelope-from imdave@mcs.net) Received: from mcs.net (netscape@base586.home.org [10.0.0.2]) by base486.home.org (8.8.8/8.8.8) with ESMTP id OAA17212; Mon, 2 Nov 1998 14:43:57 -0600 (CST) Message-ID: <363E198C.B23D32D8@mcs.net> Date: Mon, 02 Nov 1998 14:43:56 -0600 From: Dave Bodenstab Organization: Dave's Home Machine X-Mailer: Mozilla 4.07 [en] (X11; U; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Patrick Seal CC: FreeBSD Questions Subject: Re: beep fuction? References: <001901be0605$2902b900$026cfccd@asus.hyperhost.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message