[lug] counting keystrokes
CAtkinson at Circadence.com
Fri Apr 20 10:15:51 MDT 2001
This is only an approximation depending on one's vi-ness. If you use vi
mode and the hjkl exclusively you can do this, but when you start hitting
the arrow keys you get 4 key interrupts. You can do something like
while :; do
in one window and press various keys in another one. You'll see that not
every key increments the number by two.
> -----Original Message-----
> From: Sean Reifschneider [mailto:jafo at tummy.com]
> Sent: Friday, April 20, 2001 12:12 AM
> To: lug at lug.boulder.co.us
> Subject: Re: [lug] counting keystrokes
> On Mon, Apr 16, 2001 at 12:28:40PM -0600, Ken Weinert wrote:
> >Or, perhaps, there is already a keyboard driver that does
> this sort of
> >thing. Surely you aren't the first to want to count keystrokes.
> There's a keyboard interrupt. Divide the number in
> /proc/interrupts by 2.
> "The great thing about Meat Loaf is he's his own special
> effect." -- J.S.
> Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
> tummy.com - Linux Consulting since 1995. Qmail, KRUD,
> Firewalls, Python
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG