Re: Non-blocking keyboard read

2007-06-26 Thread Laszlo Nagy
[EMAIL PROTECTED] wrote: I am writing a curses application, but the getch() does not seem to give me all I want. Of course, if I press d, it returns an ord(d) and so on. But I want to be able to detect whether alt, shift or ctrl has been pressed also. Shift is normally covered by returning an

Re: Non-blocking keyboard read

2007-06-26 Thread Jean-Paul Calderone
On Tue, 26 Jun 2007 22:37:16 +0200, Laszlo Nagy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am writing a curses application, but the getch() does not seem to give me all I want. Of course, if I press d, it returns an ord(d) and so on. But I want to be able to detect whether alt, shift

Non-blocking keyboard read

2007-06-20 Thread [EMAIL PROTECTED]
I am writing a curses application, but the getch() does not seem to give me all I want. Of course, if I press d, it returns an ord(d) and so on. But I want to be able to detect whether alt, shift or ctrl has been pressed also. Shift is normally covered by returning an uppercase character instead