set_leds man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

set_leds(3)			Allegro manual			   set_leds(3)

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_NUMLOCK_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(3), key_led_flag(3)

Allegro				 version 4.4.2			   set_leds(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net