I'm trying to find a way to get mouse click event in curse module in Python.
I read the document on http://docs.python.org/library/curses.html and it suggested to do
c == curses.getch()
if(c == curses.KEY_MOUSE):
curses.getmouse()
...
However, this "if statement" seems to never get triggered... and if I tried to move the getmouse() function outside of "if statement" to force it to return the mouse information, it return
(devid,x,y,z,bstate) = curses.getmouse()
_curses.error: getmouse() returned ERR
Any other thought?