Re: [Tutor] Console Application - Key Events

2012-05-08 Thread BRAGA, Bruno
Yeah, what you say makes sense... I was hoping that there was a nice way of doing it, but I will just have to stick with "running the command yourself". I thought there could be a solution, maybe based on Ncurses, or even on the "read" command, but they can not get the keys pressed if the applicat

Re: [Tutor] Console Application - Key Events

2012-05-08 Thread Alan Gauld
On 08/05/12 02:44, BRAGA, Bruno wrote: 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? You need to be more specific about what you mean. Consoles don't have mice. Keyboard events are eas

[Tutor] Console Application - Key Events

2012-05-07 Thread BRAGA, Bruno
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 beh