Console beep function?

Wade Majors wade at ezri.org
Sun Apr 13 08:01:47 PDT 2003


Mxsmanic wrote:
> What is the closest thing to a beep function for the system console on
> FreeBSD?  I have a program I want to port from Windows that beeps
> intermittently at various frequencies, and it appears that there's no direct
> equivalent of the Windows functions for making noise.  Suggestions?  It will
> only be run on the console, so it doesn't have to work for remote terminals
> or anything.

Take a look at the spkr(4) man page. Might also want to look at the 
source for /usr/ports/audio/beep which is a tiny app that uses it.

-Wade




More information about the freebsd-questions mailing list