January 19th, 2004, 02:06 PM
Join Date: May 2003
Time spent in forums: 1 h 57 m 10 sec
Reputation Power: 11
Trying to get a simple learning program working. It works fine except I see a cursor(which I don't want). I have tried noecho and leaveok but both don't seem to make a difference.
My python is primitive but here goes:
screen = curses.initscr()
screen.addch(y, x, "@")
c = screen.getch()
if c==ord('j'): y=y+1
elif c==ord('k'): y=y-1
elif c==ord('h'): x=x-1
elif c==ord('l'): x=x+1
elif c == ord('q'): break
Running the program just creates a box and you move around a '@' using vi keys. But the program shows a @ symbol with a blocky cursor always to the right of it.
I have googled I have read, no luck. Help.
Edit: added [CODE] tags...
Last edited by netytan : January 19th, 2004 at 07:16 PM.