Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Friday, August 25th, 2006

Subject:Python + Curses
Time:3:24 pm.
Does anyone have any experience using curses with Python? I have a windows created and now I want to capture the arrow keys and move the cursor around the screen. According to the docs I should be able to use getch() to capture a key. When I capture one of the arrow keys it returns 3 numbers.

while 1:
ch = getch()
print ch,

Prints three things back to back. I was expecting it to return 1042 or something but it's not. Any ideas?
Comments: Read 6 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image