[Tutor] Console Application - Key Events

BRAGA, Bruno bruno.braga at gmail.com
Tue May 8 03:44:13 CEST 2012


Hi tutors,

I would like to know if there is any "easy" way to handle events (such as
mouse movements, keyboard keys pressed, etc) in console based python
applications?

More specifically, I am working on a screensaver for terminals (
http://termsaver.info), so I would like to simulate the same behaviour of a
standard screensaver for the X windows, by:

   - running on background
   - starting some functionality (display a text, etc) if there is no event
   (mouse or keyboard) for more than N minutes
   - stopping the above if there is any movement detected

Any thoughts on this would be highly appreciated.

Thanks!

--
*Braga, Bruno*
www.brunobraga.net
bruno.braga at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120508/d7463bae/attachment.html>


More information about the Tutor mailing list