Query: xbell
OS: hpux
Section: 3x
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XBell() XBell()
Name
XBell - ring the bell.
Synopsis
XBell(display, percent)
Display *display;
int percent;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
percent Specifies the volume for the bell, relative to the base volume set with XChangeKeyboardControl(). Possible values are -100 (off),
through 0 (base volume), to 100 (loudest) inclusive.
Description
Rings the bell on the keyboard at a volume relative to the base volume, if possible. percent can range from -100 to 100 inclusive (else a
BadValue error). The volume at which the bell is rung when percent is nonnegative is:
volume = base - [(base * percent) / 100] + percent
and when percent is negative:
volume = base + [(base * percent) / 100]
To change the base volume of the bell, set the bell_percent variable of XChangeKeyboardControl().
Errors
BadValue percent < -100 or percent >100.
See Also
XAutoRepeatOff(), XAutoRepeatOn(), XChangeKeyboardControl(), XGetDefault(), XGetKeyboardControl(), XGetPointerControl().
Xlib - User Preferences XBell()
| Related Man Pages |
|---|
| xdevicebell(3) - x11r4 |
| xdevbell(3x11) - hpux |
| xchangekeyboardcontrol(3x11) - osf1 |
| xdevicebell(3x11) - osf1 |
| xkeyboardcontrol(3x11) - osf1 |
| Similar Topics in the Unix Linux Community |
|---|
| How to make sound using C under UNIX |
| Error with ignite |
| Change text font to greater one in this very good MOTIF texteditor ? |