Re: Detecting key presses

2006-06-19 Thread blue99
> Someone suggested using curses, but that does crazy things with my > output, and leaves the terminal unusable after the program closes. It's very good suggestion but you should use also initscr and endwin functions. Regards, Rob -- http://mail.python.org/mailman/listinfo/python-list

Re: Detecting key presses

2006-06-19 Thread peter
Not a stupid question at all - its something I was looking for, and was (and still am) surprised not to find a cross platform implementation. It must be possible - for a short while I dabbled with yabasic and there the same source code would recognise a keypress in both Windows and Linux. My solut

Re: Detecting key presses

2006-06-18 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Ok, I'm pretty new to python, so this might be a stupid question. I'm > trying to write a simple text-based pong clone, and I can't figure out > how to read key presses to move the paddles. I just need something that > does the same thing as getch() and kbhit(). I can't

Re: Detecting key presses

2006-06-17 Thread Fan Zhang
On 2006-06-18 13:20:06, tylertacky write: >Ok, I'm pretty new to python, so this might be a stupid question. I'm >trying to write a simple text-based pong clone, and I can't figure out >how to read key presses to move the paddles. I just need something that >does the same thing as getch() and kbhit

Detecting key presses

2006-06-17 Thread tylertacky
Ok, I'm pretty new to python, so this might be a stupid question. I'm trying to write a simple text-based pong clone, and I can't figure out how to read key presses to move the paddles. I just need something that does the same thing as getch() and kbhit(). I can't use those because their windows on