Date: Mon, 02 Nov 1998 14:43:56 -0600 From: Dave Bodenstab <imdave@mcs.net> To: Patrick Seal <patseal@hyperhost.net> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: beep fuction? Message-ID: <363E198C.B23D32D8@mcs.net> References: <001901be0605$2902b900$026cfccd@asus.hyperhost.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?363E198C.B23D32D8>