Mr_Person has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a Perl program that will have all of its input come from a PS/2 keypad that has no Numlock light on it. Because Numlock can be turned on and off at the pad but there's no way to see, just by looking at the pad, what the status of Numlock is I would like like to have an on-screen indicator for this.
Is there any way with Perl to retrieve the status of Numlock and perhaps even get updates when it is turned on or off? I know I could run setleds every few seconds and parse the output from there, but that doesn't seem like a very clean solution and also wouldn't be able to update the screen right away when the key is pressed.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Get Numlock Status
by belg4mit (Prior) on Jul 04, 2003 at 05:45 UTC | |
by Mr_Person (Hermit) on Jul 04, 2003 at 16:21 UTC | |
by belg4mit (Prior) on Jul 04, 2003 at 16:54 UTC | |
by Mr_Person (Hermit) on Jul 05, 2003 at 21:06 UTC | |
Re: Get Numlock Status
by Aragorn (Curate) on Jul 04, 2003 at 07:44 UTC |
Back to
Seekers of Perl Wisdom