XBell()XBell()NameXBell – ring the bell.
Synopsis
XBell(display, percent)
Display *display;
int percent;
Arguments
display Specifies a connection to an X server; returned from XOpenDis‐
play().
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 Bad‐
Value 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 AlsoXAutoRepeatOff(), XAutoRepeatOn(), XChangeKeyboardControl(), XGetDe‐
fault(), XGetKeyboardControl(), XGetPointerControl().
Xlib - User Preferences XBell()