Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Nov 1998 10:21:24 -0500 (EST)
From:      Spike Gronim <spork@ix.netcom.com>
To:        Dave Bodenstab <imdave@mcs.net>
Cc:        Patrick Seal <patseal@hyperhost.net>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: beep fuction?
Message-ID:  <Pine.BSF.3.96.981103102046.262A-100000@PigStuy.dyn.ml.org>
In-Reply-To: <363E198C.B23D32D8@mcs.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981103102046.262A-100000>