| | |
Toggle caps, num or scroll lock
![]() |
Try using setleds. It comes standard on most linux boxes.
http://linux.about.com/library/cmd/blcmdl1_setleds.htm
For fun check out:
http://www.hut.fi/~jlohikos/tleds_orig.html
Blinking leds for network activity!
Back to your question... simply do a exec (...) to call the setleds program, or look at the sources for tleds or setled. It shouldn't be hard at all to do programatically in C++.
http://linux.about.com/library/cmd/blcmdl1_setleds.htm
For fun check out:
http://www.hut.fi/~jlohikos/tleds_orig.html
Blinking leds for network activity!

Back to your question... simply do a exec (...) to call the setleds program, or look at the sources for tleds or setled. It shouldn't be hard at all to do programatically in C++.
•
•
Join Date: Aug 2004
Posts: 5
Reputation:
Solved Threads: 0
Hi Cosi,
Thanks for replying.
I tried the sites mentioned by you. But they don't show the sources. I have come across a source that could toggle caps lock on and off but on a Windows/Dos operating system using POKEB or PEEKB functions including in header file DOS.H, which is not helpful, as I have to run the program on a Unix (SCO Unixware) Operating system on which dos.h cannot be run. Can you or any one suggest what functions are available on Unix Operating system like POKEB or PEEKB on Windows/Dos operating system. :p
Thanks for replying.
I tried the sites mentioned by you. But they don't show the sources. I have come across a source that could toggle caps lock on and off but on a Windows/Dos operating system using POKEB or PEEKB functions including in header file DOS.H, which is not helpful, as I have to run the program on a Unix (SCO Unixware) Operating system on which dos.h cannot be run. Can you or any one suggest what functions are available on Unix Operating system like POKEB or PEEKB on Windows/Dos operating system. :p
![]() |
Similar Threads
- Caps/Num/Scroll lock lights blinking, keyboard doesn't work (Windows 95 / 98 / Me)
- ALL inputs gone help plz (Windows NT / 2000 / XP)
- No video/sound/mouse/keyboard output (Troubleshooting Dead Machines)
Other Threads in the C++ Forum
- Previous Thread: loop in main function to an "if" statement
- Next Thread: Using MFC in a Static Library
| Thread Tools | Search this Thread |
api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count delay-loading delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption equation error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node output parameter performance pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tivoli tree url variable vector video win32 windows winsock wordfrequency wxwidgets





