netbsd man page for set_leds

Query: set_leds

OS: netbsd

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

set_leds(3alleg4)						  Allegro manual						 set_leds(3alleg4)

NAME
set_leds - Sets the state of the keyboard LED indicators. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void set_leds(int leds);
DESCRIPTION
Overrides the state of the keyboard LED indicators. The parameter is a bitmask containing any of the values KB_SCROLOCK_FLAG, KB_NUM- LOCK_FLAG, and KB_CAPSLOCK_FLAG, or -1 to restore the default behavior. Example: /* Cycle led indicators. */ set_leds(KB_SCROLOCK_FLAG); rest(1000); set_leds(KB_CAPSLOCK_FLAG); rest(1000); set_leds(KB_NUMLOCK_FLAG); rest(1000); set_leds(-1); Note that the led behaviour cannot be guaranteed on some platforms, some leds might not react, or none at all. Therefore you shouldn't rely only on them to communicate information to the user, just in case it doesn't get through.
SEE ALSO
install_keyboard(3alleg4), key_led_flag(3alleg4) Allegro version 4.4.2 set_leds(3alleg4)
Related Man Pages
set_leds(3alleg4) - suse
install_keyboard(3alleg4) - opendarwin
install_keyboard(3alleg4) - x11r4
install_keyboard(3alleg4) - v7
install_keyboard(3alleg4) - freebsd
Similar Topics in the Unix Linux Community
How to install PGX32 on Sparc 10 Ultra?
Vm versus physical linux server
NetBSD 6.1.2: apm and admd not found
Grandpa returning to UNIX
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD