Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: manipulating the lights on a keyboard

by JaWi (Hermit)
on Jul 25, 2003 at 07:13 UTC ( #277809=note: print w/replies, xml ) Need Help??


in reply to manipulating the lights on a keyboard

From a `real' console which understands EMCA-48 CSI sequences (like Linux for example), you can use the following snippet to control the leds on your keyboard:
#!/usr/bin/perl -w while ( 1 ) { print "\e[".$_."q" and sleep 1 for ( 0..3 ); }
This will turn on each individual led on turn.
For more information on see the man-page of console_codes(4).

HTH,

JaWi

-- JaWi

"A chicken is an egg's way of producing more eggs."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2023-12-07 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (32 votes). Check out past polls.

    Notices?