PDA

View Full Version : beep



ivandn
10-25-2001, 05: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, 06:29 AM
Quick hack:
system("xkbbell");

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

Good luck