Track keyboard and mouse usage

Diez B. Roggisch deets at nospam.web.de
Mon Jul 17 16:52:37 EDT 2006


dfaber schrieb:
> So, how would I access /dev/input/ devices?
> Can I just 'cat' them or read in those files?

Yes, just read them. Which is what cat does, btw.

If you cat your keyboard, you should see garbage appearing in the 
terminal when you type any key. Same is true for the mouse.

Diez



More information about the Python-list mailing list