WSBELL(4)
π WSBELL(4) π
okay bestie, welcome to the wsbell page β that's section 4 of the manual, the Kernel Interfaces Manual one, iykyk π
this is the generic bell support in wscons and honestly she's a little icon.
β¨ NAME β¨
wsbell β generic bell support in wscons
πΈ SYNOPSIS πΈ
wsbell* at spkr? console?
π DESCRIPTION π
So the wsbell driver utilizes the speaker(4) driver to give you a system bell with or without a keyboard, all for the wscons(4) framework π«Ά. And when a bell character gets received on a wsdisplay(4) screen, wsbell sounds the bell. That's literally her whole job and she does it slayfully.
The wsconsctl(8) utility gives you access to several configurable parameters that affect the sound of the system bell β so yes, you can customize the vibe of your beep π₯.
π¦ Ioctls π¦
The following ioctl(2) calls are provided by the wsbell driver, and their definitions are found in dev/wscons/wsconsio.h β¨.
WSKBDIO_BELLβ will sound the default bell. simple as that, no cap.WSKBDIO_GETBELLβ will return astruct wskbd_bell_datawith the current bell parameters.WSKBDIO_SETBELLβ takes astruct wskbd_bell_dataand uses it to set the bell parameters. these are used by theWSKBDIO_BELLioctl(2)call.WSKBDIO_COMPLEXBELLβ will sound a bell using a suppliedstruct wskbd_bell_datafor its parameters. fancy mode fr fr.WSKBDIO_GETDEFAULTBELLβ will return astruct wskbd_bell_datawith the default bell parameters.WSKBDIO_SETDEFAULTBELLβ takes astruct wskbd_bell_dataand uses it to set the default bell parameters.
Ioctls use the following structure π
struct wskbd_bell_data {
u_int which; /* values to get/set */
#define WSKBD_BELL_DOPITCH 0x1 /* get/set pitch */
#define WSKBD_BELL_DOPERIOD 0x2 /* get/set period */
#define WSKBD_BELL_DOVOLUME 0x4 /* get/set volume */
#define WSKBD_BELL_DOALL 0x7 /* all of the above */
u_int pitch; /* pitch, in Hz */
u_int period; /* period, in milliseconds */
u_int volume; /* percentage of max volume */
};
like, the which field is the main character here β it decides which values to get/set, and you can go all in with WSKBD_BELL_DOALL π.
π FILES π
/usr/include/dev/wscons/wsconsio.h.
π SEE ALSO π
speaker(4), wscons(4), wskbd(4), wsmux(4), wsconsctl(8), wsbell(9)
ok that's the whole page bestie, go make some iconic beeps π
De bian, June 13, 2017 β that's the source/version and date line, mwah π thanks for reading, ily, bye π§ββοΈβ¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2017 Nathanial Sloss <nathanialsloss@yahoo.com.au>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms