how to get the status of num, caps, scroll lock?

how to get the status of num, caps, scroll lock?

Post by Hackker Won » Sun, 21 Jan 2001 23:56:58



hi,

do you know how to get the status of num, caps, scroll lock? i am
writing a program which changes the LEDs on keyboard. after exiting the
program, i need to restore the original state of LEDs. would you tell me
which function in C can achieve this?

thx a lot!!

p.s. i use setledstate() in /usr/src/linux/drivers/char/keyboard.c to
set the LEDs in my program.

--
- By Hackker
****************************************************
  Mr. Hackker Wong,
  Y99 Student of Computer Science,
  The Chinese University of Hong Kong.
****************************************************
 -The World can't run without computer technicians-

 
 
 

1. Modem TX and RX status via Num Lock-Caps Lock-Scroll Lock

'Netters,

A time ago someone asked about implementing their Num Lock, Caps Lock,
and Scroll Lock keyboard lights as a modem transmit and receive status
indicator.  

Has anyone accomplished this?  If so, is the code at an archive site?

-Rod
--
-----------
If you yell try : Rod Troch                  | Zeta Beta Tau

Pgp key available upon request.              | happyHappy joyJoy
         Don't mess with TEXAS. (Lonestar - A Linux box)

2. shutdown

3. how to get the status of num, caps, scroll lock?

4. KDE 2.1 saved konsole windows ignore WM_COMMAND (?)

5. CAPS lock and NUM lock

6. ulimit on Solaris 2.6 (5/98)

7. Reset Keyboard? (caps lock/num lock)

8. Apache and how to get access to directories???

9. Using the NUM-CAPS-SCROLL lights for system load

10. Changing the behavior of NUM/CAPS lOCK

11. X-Terminal, CAP/NUM-Lock inconsistencies

12. Num caps lock in X

13. Problem: RedHat 7.2 during installation scroll and caps lock blinking