Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-08-18 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?