Hi!
Thanks, Michael, for your quick - and heplful - reply.
13.01.2013 18:46, Michael Torrie wrote:
You're wrong. curses does offer a direct solution to this. Check the
docs. Also here's a nice intro document for Python 3:
http://docs.python.org/dev/howto/curses.html
You are right :) The do
K. Elo wrote:
> Practically I am looking for something similar than Pascal's
> "keypressed" function
As already mentioned, (n)curses is a good solution.
However, if you need/want to go to lower levels, you can read
/dev/input/event* like this (excerpt from one of my programs):
def opendevs()
On 01/13/2013 09:13 AM, K. Elo wrote:
> I have searched in the Web and in several tutorials (e.g. "Programming
> python"), but this seems to be a tricky one. The 'pyHook' library seems
> to offer a keyboard hook manager, but 'pyHook' is not available for
> linux :( IMHO, the 'curses' library off
On 01/13/2013 09:13 AM, K. Elo wrote:
> I am working on a small console app for linux. The idea is to display
> some sensor values and the screen should update itself in, say, every 10
> seconds.
>
> The user should have the possibly to change some configurations or gwt
> help by pressing diffe
Hi!
I am working on a small console app for linux. The idea is to display
some sensor values and the screen should update itself in, say, every 10
seconds.
The user should have the possibly to change some configurations or gwt
help by pressing different keys (like you can do when running e.g