beep [Archive] - C Board

PDA

View Full Version : beep


ivandn
10-25-2001, 06:35 AM
Is there a system call to make linux beep in c. I tried printf("\a"); but it crashed because it is a XWindows program.

alex
10-25-2001, 07:29 AM
Quick hack:
system("xkbbell");

Look up the Xwindows functions:
XkbBell
XkbForceBell
XkbDeviceBell
XkbForceDeviceBell
XkbBellEvent
XkbDeviceBellEvent

Good luck