Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re**3 Get Numlock Status

by belg4mit (Prior)
on Jul 04, 2003 at 16:54 UTC ( [id://271520]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Get Numlock Status
in thread Get Numlock Status

I've looked into a bit further... The event is available to usermode apps as showkey detects it (I get keycode 69), however I was unable to getch() it. It may be terminal specific, and you might have better luck searching the web for relevant information than I did.

--
I'm not belgian but I play one on TV.

Replies are listed 'Best First'.
Re**4: Get Numlock Status
by Mr_Person (Hermit) on Jul 05, 2003 at 21:06 UTC
    Thanks for the help! After some more searching and taking a look at the showkey sources, I was able to recreate most of the functionality of showkey in Perl (at least enough to capture numlock presses). I've posted an example program here in case anyone else is interested.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://271520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found